Hacker News new | ask | show | jobs
by amelius 3978 days ago
This algorithm operates on trees. But I've always wondered how one can create efficient algorithms operating on general graphs in a functional language such as Haskell?

For example, how would one write a fast version of Dijkstra's shortest path algorithm in Haskell?

2 comments

E.g. using a variation of zippers