Safe Haskell | None |
---|
LSC.KGGGP
Documentation
balanceFactor :: Rational Source #
Constructors
Gain String (STRef s Int, MVector s IntSet) (Vector (MVector s Int)) (Vector (HashTable s Int [a])) |
numberOfPartitions :: Gain s Int -> Int Source #
type Displacement = (Int, Int) Source #
Constructors
Move Int Int |
type Partitioning = Vector IntSet Source #
type MPartitioning s = MVector s IntSet Source #
cutSizes :: V -> Partitioning -> [Int] Source #
type Clustering = Vector IntSet Source #
type Permutation = Vector Int Source #
Constructors
Heu | |
Fields
|
class HasFreeCells s a | s -> a where Source #
balanceConstraint :: V -> Int -> Int -> KGGGP s Bool Source #
connectivityConstraint :: V -> Int -> Int -> KGGGP s Bool Source #
kgggp :: (V, E) -> Partitioning -> KGGGP s Partitioning Source #
emptyGains :: Gain s a -> ST s Bool Source #
maximumGain :: Gain s Int -> ST s (Int, Int) Source #
moveDisplacement :: Displacement -> Gain s Int -> Gain s Int -> ST s () Source #
initialDisplacements :: (V, E) -> String -> Partitioning -> ST s (Gain s Int) Source #
removeGain :: Int -> Int -> Gain s Int -> ST s (Maybe Int) Source #
insertGain :: Int -> Int -> Int -> Gain s Int -> ST s () Source #
modifyGain :: Int -> Int -> (Int -> Int) -> Gain s Int -> ST s () Source #
inputRoutine :: Foldable f => Int -> Int -> f (Int, Int) -> ST s (V, E) Source #