# Contraction Hierarchies Find a Florida Route by Settling 346 Junctions Instead of a Million

Original title: Dijkstra vs. A* vs. Contraction Hierarchies

> Hacker News story 50174816 · language: en · submitted 2026-10-21
> Web version: https://zeli.app/story/50174816
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 25 · by [signa11](<https://news.ycombinator.com/user?id=signa11>) · 💬 0
[original](<https://arcadedb.com/route-planning.html>) · [HN discussion](<https://news.ycombinator.com/item?id=50174816>)

## Summary

ArcadeDB benchmarks Dijkstra, A*, and Customizable Contraction Hierarchies on Florida's real road network: 1.07 million junctions, 2.7 million segments. For a Tallahassee-to-Coral Gables trip, Dijkstra settles 1,029,617 junctions, A* 840,138, and CCH just 346, returning the same 8-hour-18-minute route in 0.039 ms versus 99 and 121 ms. The hierarchy lives inside the database, so a traffic jam is an ordinary property update that re-prices only the affected arcs.

## Key quote

> That is the difference between a routing feature of the database and a routing cache next to it: there is no window in which a query returns a route over a road that was closed a second ago.

---

## Cite

- Page: https://zeli.app/story/50174816
- Date: 2026-10-21
- Source: arcadedb.com (https://arcadedb.com/route-planning.html)
- Hacker News: https://news.ycombinator.com/item?id=50174816

## Other languages

- zh: https://zeli.app/zh/story/50174816 · markdown: https://zeli.app/zh/story/50174816.md
- ja: https://zeli.app/ja/story/50174816 · markdown: https://zeli.app/ja/story/50174816.md
- ko: https://zeli.app/ko/story/50174816 · markdown: https://zeli.app/ko/story/50174816.md
- de: https://zeli.app/de/story/50174816 · markdown: https://zeli.app/de/story/50174816.md
- es: https://zeli.app/es/story/50174816 · markdown: https://zeli.app/es/story/50174816.md
- ru: https://zeli.app/ru/story/50174816 · markdown: https://zeli.app/ru/story/50174816.md
