Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
924e798d
Commit
924e798d
authored
Nov 20, 2014
by
Yiannis Tsiouris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type signature and whitespace cleanup
parent
bd6bb961
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
Table.hs
Table.hs
+4
-3
Utils.hs
Utils.hs
+5
-4
No files found.
Table.hs
View file @
924e798d
...
@@ -24,12 +24,13 @@ module Table( -- Types
...
@@ -24,12 +24,13 @@ module Table( -- Types
,
fill_deg
,
fill_deg
)
where
)
where
import
Data.Array
(
Array
,
elems
,
listArray
,
(
!
),
(
//
))
import
Data.Array
(
Array
,
elems
,
listArray
,
(
!
),
(
//
))
import
Utils
(
Vertex
)
import
Utils
(
Vertex
)
type
Freq
=
[
Int
]
type
Freq
=
[
Int
]
type
VTable
=
Array
Int
[
Vertex
]
type
VTable
=
Array
Int
[
Vertex
]
type
TableStats
=
[(
String
,
String
)]
type
TableStats
=
[(
String
,
String
)]
-- Note: Hash tables have a fixed number of slots but each slot can store
-- Note: Hash tables have a fixed number of slots but each slot can store
-- a list of vertices. The functions is_member/3 and insert/3
-- a list of vertices. The functions is_member/3 and insert/3
...
...
Utils.hs
View file @
924e798d
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveDataTypeable #-}
module
Utils
where
module
Utils
where
import
Data.Binary
import
Data.Binary
import
Data.Typeable
import
Data.Typeable
-- Trying to serialize ParConf closures...
-- Trying to serialize ParConf closures...
newtype
GenClos
=
GenClos
(
String
,
Int
,
[
Generator
])
newtype
GenClos
=
GenClos
(
String
,
Int
,
[
Generator
])
...
@@ -102,7 +102,7 @@ g34 n = g3 n ++ g4 n
...
@@ -102,7 +102,7 @@ g34 n = g3 n ++ g4 n
g35
n
=
g3
n
++
g5
n
g35
n
=
g3
n
++
g5
n
g45
n
=
g4
n
++
g5
n
g45
n
=
g4
n
++
g5
n
gg12
,
gg13
,
gg14
,
gg15
,
gg23
,
gg24
,
gg2
4
::
Vertex
->
GenClos
gg12
,
gg13
,
gg14
,
gg15
,
gg23
,
gg24
,
gg2
5
::
Vertex
->
GenClos
gg12
n
=
GenClos
(
"g12"
,
n
,
(
g12
n
))
gg12
n
=
GenClos
(
"g12"
,
n
,
(
g12
n
))
gg13
n
=
GenClos
(
"g13"
,
n
,
(
g13
n
))
gg13
n
=
GenClos
(
"g13"
,
n
,
(
g13
n
))
gg14
n
=
GenClos
(
"g14"
,
n
,
(
g14
n
))
gg14
n
=
GenClos
(
"g14"
,
n
,
(
g14
n
))
...
@@ -122,7 +122,8 @@ g235 n = g23 n ++ g5 n
...
@@ -122,7 +122,8 @@ g235 n = g23 n ++ g5 n
g245
n
=
g24
n
++
g5
n
g245
n
=
g24
n
++
g5
n
g345
n
=
g34
n
++
g5
n
g345
n
=
g34
n
++
g5
n
gg123
,
gg124
,
gg125
,
gg134
,
gg135
,
gg145
,
gg234
,
gg235
,
gg245
,
gg345
::
Vertex
->
GenClos
gg123
,
gg124
,
gg125
,
gg134
,
gg135
,
gg145
,
gg234
,
gg235
,
gg245
,
gg345
::
Vertex
->
GenClos
gg123
n
=
GenClos
(
"g123"
,
n
,
(
g123
n
))
gg123
n
=
GenClos
(
"g123"
,
n
,
(
g123
n
))
gg124
n
=
GenClos
(
"g124"
,
n
,
(
g124
n
))
gg124
n
=
GenClos
(
"g124"
,
n
,
(
g124
n
))
gg125
n
=
GenClos
(
"g125"
,
n
,
(
g125
n
))
gg125
n
=
GenClos
(
"g125"
,
n
,
(
g125
n
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment