Copyright | (c) 2017-20202022-2023 Dakotah Lambert |
---|---|
License | MIT |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Extensions |
|
Find forbidden subsequences of an automaton.
Formerly known as LTK.ExtractSP
.
Since: 0.2
Synopsis
- data ForbiddenSubsequences e = ForbiddenSubsequences {
- attestedAlphabet :: Set e
- getSubsequences :: Set [e]
- forbiddenSubsequences :: (Ord n, Ord e) => FSA n e -> ForbiddenSubsequences e
- fsaFromForbiddenSubsequences :: (Ord e, NFData e) => ForbiddenSubsequences e -> FSA Integer e
- isSP :: (Ord n, Ord e) => FSA n e -> Bool
- isSSQ :: Eq a => [a] -> [a] -> Bool
- subsequenceClosure :: (Ord n, Ord e) => FSA n e -> FSA n e
Documentation
data ForbiddenSubsequences e #
A convenience-type for declaring collections of forbidden subsequences. The member types are (lists of) the raw alphabet type (not (Symbol .))
ForbiddenSubsequences | |
|
Instances
forbiddenSubsequences :: (Ord n, Ord e) => FSA n e -> ForbiddenSubsequences e #
Given an FSA
\(A\),
returns the set of subsequences \(v\) such that
for all words \(w\), \(v\sqsubseteq w\) implies
that \(w\) is not accepted by \(A\).
fsaFromForbiddenSubsequences :: (Ord e, NFData e) => ForbiddenSubsequences e -> FSA Integer e #
The stringset represented by the forbiddenSubsequences.