| Safe Haskell | None |
|---|
GTA.Data.BinTree
Description
This module provides the GTA framework on binary (and leaf-valued) trees, such as definitions of the data structures and their algebras, generators, aggregators, etc.
Documentation
Instances
| Eq a => Eq (LVTree a) | |
| Ord a => Ord (LVTree a) | |
| Read a => Read (LVTree a) | |
| GenericSemiringStructure (LVTreeAlgebra b) (LVTree b) (LVTreeMapFs b) |
data LVTreeAlgebra b a Source
Constructors
| LVTreeAlgebra | |
Instances
| GenericSemiringStructure (LVTreeAlgebra b) (LVTree b) (LVTreeMapFs b) |
data LVTreeMapFs b b' Source
Constructors
| LVTreeMapFs | |
Fields
| |
Instances
| GenericSemiringStructure (LVTreeAlgebra b) (LVTree b) (LVTreeMapFs b) |
data BinTreeAlgebra n l a Source
Constructors
| BinTreeAlgebra | |
Instances
| GenericSemiringStructure (BinTreeAlgebra n l) (BinTree n l) (BinTreeMapFs n l) |
data BinTreeMapFs n l b' Source
Constructors
| BinTreeMapFs | |
Instances
| GenericSemiringStructure (BinTreeAlgebra n l) (BinTree n l) (BinTreeMapFs n l) |
lvtrees :: [a] -> LVTreeSemiring a s -> sSource
subtreeSelectsWithRoot :: BinTree n l -> BinTreeSemiring (Bool, n) (Bool, l) a -> aSource
subtreeSelects :: BinTree n l -> BinTreeSemiring (Bool, n) (Bool, l) a -> aSource
assignTrans :: [b] -> [c] -> BinTreeSemiring c (b, a) s -> LVTreeSemiring a sSource
assignTrees :: [b] -> [c] -> [a] -> BinTreeSemiring c (b, a) s -> sSource
count :: Num a => BinTreeSemiring n l aSource
maxsum :: (Num a, Ord a) => BinTreeSemiring (Bool, a) (Bool, a) (AddIdentity a)Source
maxsumsolution :: (Num a, Ord a) => BinTreeSemiring (Bool, a) (Bool, a) (AddIdentity a, Bag (BinTree (Bool, a) (Bool, a)))Source
type LVTreeSemiring a s = GenericSemiring (LVTreeAlgebra a) sSource
type BinTreeSemiring n l a = GenericSemiring (BinTreeAlgebra n l) aSource