File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ import qualified Data.List as List
40
40
-- R := {{all nonaccepting states}};
41
41
-- Q := {{all accepting states}};
42
42
-- while (Q is not empty) do
43
- -- choose and remove a set A from Q
43
+ -- choose a set A from Q
44
+ -- remove A from Q and add it to R
44
45
-- for each c in ∑ do
45
46
-- let X be the set of states for which a transition on c leads to a state in A
46
47
-- for each set Y in R for which X ∩ Y is nonempty and Y \ X is nonempty do
@@ -154,7 +155,7 @@ groupEquivStates DFA { dfa_states = statemap }
154
155
where
155
156
xs :: [EquivalenceClass ]
156
157
xs = filter (not . IS. null )
157
- . map (\ m -> IS. unions [IM. findWithDefault IS. empty s m | s <- IS. toList a])
158
+ . map (\ m -> IS. unions [IM. findWithDefault IS. empty s m | s <- IS. toList a])
158
159
$ bigmap
159
160
160
161
go0 (r,q) x = go1 r [] []
You can’t perform that action at this time.
0 commit comments