A* search algorithm: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (Automated syntax highlighting fixup (second round - minor fixes)) |
m (→{{header|Haskell}}: spelling) |
||
Line 1,695: | Line 1,695: | ||
else foldr Map.delete (g x) ns </syntaxhighlight> |
else foldr Map.delete (g x) ns </syntaxhighlight> |
||
Finally, the search |
Finally, the search algorithm, as given in Wikipedia. |
||
<syntaxhighlight lang="haskell">get :: (Ord k, Bounded a) => Map k a -> k -> a |
<syntaxhighlight lang="haskell">get :: (Ord k, Bounded a) => Map k a -> k -> a |