Every time you ask a map app for the fastest route, something underneath is solving the shortest-path problem: given a network of places and roads with travel costs, find the cheapest way from your starting point to everywhere else.
Edsger W. Dijkstra solved it elegantly in 1959, during a coffee break in Amsterdam â by hand, with no computer, in twenty minutes. His insight: always extend the shortest known path first. Commit to one node at a time, in order of increasing distance, and you will never have to revise a decision.
The result is a provably correct, polynomial-time algorithm. Unlike P vs NP questions or NP-hard scheduling problems, finding the shortest path is genuinely easy â not just fast in practice, but fast in theory, with a mathematical proof of optimality attached.
Comments
Loading comments...