---
answer: direct
beat: system-design
source: 1 article · updated: August 20, 2026
---

Why doesn't Google just run Dijkstra faster?

Dijkstra explores radially from the origin, expanding into every nearby neighbourhood before reaching the destination. Speeding up individual steps doesn't help—it still touches millions of irrelevant nodes. Contraction Hierarchies works by structurally skipping them, not computing faster.

Answered in

Why Google Maps Computes Shortcuts Offline

Contraction Hierarchies precomputes shortcut edges offline so routing queries skip neighbourhood streets and touch only 2,000 nodes in under 10 milliseconds.

Crashtech Editorial August 20, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.