Safe Haskell | None |
---|---|
Language | Haskell2010 |
The most basic bitset structure. Alone, not particularly useful, because
two sets {u,v},{v',w}
have no way of annotating the connection between the
sets. Together with boundaries this yields sets for useful DP algorithms.
Synopsis
- newtype BitSet t = BitSet {}
- bitSet :: forall k (t :: k) k (t :: k). Iso (BitSet (t :: k)) (BitSet (t :: k)) Int Int
- streamUpMk :: Monad m => Int -> Int -> t -> m (t, Maybe (BitSet ioc))
- streamUpStep :: Monad m => Int -> Int -> (t, Maybe (BitSet ioc)) -> m (Step (t, Maybe (BitSet ioc)) (t :. BitSet ioc))
- streamDownMk :: Monad m => Int -> Int -> t -> m (t, Maybe (BitSet ioc))
- streamDownStep :: Monad m => Int -> Int -> (t, Maybe (BitSet ioc)) -> m (Step (t, Maybe (BitSet ioc)) (t :. BitSet ioc))
Documentation
Newtype for a bitset.
Int
integrates better with the rest of the framework. But we should
consider moving to Word
-based indexing, if possible.