A* search algorithm: Difference between revisions

Content added Content deleted
m (Automated syntax highlighting fixup (second round - minor fixes))
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 algorythm, as given in Wikipedia.
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