bfs: use a Set for visited nodes
This commit is contained in:
parent
7f0afa76a6
commit
56a8dd2b30
2 changed files with 6 additions and 4 deletions
|
@ -9,7 +9,7 @@ data Statement
|
|||
| Or Statement Statement
|
||||
| Implies Statement Statement
|
||||
| Iff Statement Statement
|
||||
deriving (Show, Eq)
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
atoms :: Statement -> [String]
|
||||
atoms = toAscList . mkSet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue