Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype UnionFind s = UF {
- getUnionFind :: MVector s Int
- newUnionFind :: PrimMonad m => Int -> m (UnionFind (PrimState m))
- freezeUnionFind :: PrimMonad m => UnionFind (PrimState m) -> m (Vector Int)
- findUF :: PrimMonad m => UnionFind (PrimState m) -> Int -> m Int
- sizeUF :: PrimMonad m => UnionFind (PrimState m) -> Int -> m Int
- uniteUF :: PrimMonad m => UnionFind (PrimState m) -> Int -> Int -> m Bool
- uniteUF_ :: PrimMonad m => UnionFind (PrimState m) -> Int -> Int -> m ()
- equivUF :: PrimMonad m => UnionFind (PrimState m) -> Int -> Int -> m Bool
- countGroupUF :: PrimMonad m => UnionFind (PrimState m) -> m Int
Documentation
newUnionFind :: PrimMonad m => Int -> m (UnionFind (PrimState m)) Source #
freezeUnionFind :: PrimMonad m => UnionFind (PrimState m) -> m (Vector Int) Source #
countGroupUF :: PrimMonad m => UnionFind (PrimState m) -> m Int Source #
O(n)