Google Maps is unreasonably fast. Let me explain @veritasium
Google Maps is unreasonably fast. Let me explain  @veritasium
Uploaded May 2026 | Updated September 2026, 2 weeks ago
The math behind Google Maps. Sponsored by boot.dev - Click this link https://boot.dev/?promo=VERITASIUM and use our code VERITASIUM to get 25% off your first payment for boot.dev.

If you’re looking for a molecular modelling kit, try Snatoms, a kit I invented where the atoms snap together magnetically - ve42.co/SnatomsV

Sign up for the Veritasium newsletter for weekly science updates - ve42.co/Newsletter

For those curious about the path-count estimate: we estimated the non-backtracking paths NYC→SF, using a sparse spatial network model with mean degree ≈ 2.5 and characteristic length ≈ √N.

▀▀▀
0:00 What is a ‘shortest path algorithm’?
3:30 Dijkstra’s 20 Minute Algorithm
6:30 The First Route Planner
10:31 A* Search Algorithm
12:40 Shortest Doesn’t Mean Fastest
15:08 Road Network Hierarchy
18:29 Mapping North America - Nested Dissection
25:17 How do map apps work?
28:04 Simplicity is prerequisite for reliability

▀▀▀
Check out @twoswap's channel for some fantastic videos!

A big thank you to Ben Strasser and Julian Dibbelt who were incredibly gracious with their time and feedback.

Thank you to all the experts we interviewed for this video: Aaron Bernstein, Tim Roughgarden, Tomas Rokicki, Jon Kleinberg, Virginia Vassilevska Williams, Peter Sanders, and the team behind the SSSP Barrier Paper: Xinkai Shu, Ran Duan, Xiao Mao, Longhui Yin, Jiayi Mao

For more information on how you choose A*'s heuristic, check out Polylog's video: youtu.be/A60q6dcoCjw?si=5LHOmZ8ZKvR_kLcx

If you'd like more information on Minecraft's A*, check out RedLogic's video: youtu.be/Zg0Cxn8AVZA?si=DyECX4wmeuSb4c1n

▀▀▀
References: ve42.co/DijkstraRefs

▀▀▀
Special thanks to our Patreon supporters:
Adam Foreman, Albert Wenger, Alex Porter, Alexander Tamas, André Powell, Anton Ragin, Balkrishna Heroor, Bertrand Serlet, Blake Byers, Bruce, Bryan Ackermann, Chris Brewer, Data Don, Dave Kircher, David Johnston, David Tseng, EJ Alexandra, Evgeny Skvortsov, Garrett Mueller, Gnare, gpoly, Hayden Christensen, Hong Thai Le, Ibby Hadeed, Jeromy Johnson, Jesse Brandsoy, Juan Benet, Kelcey Steele, KeyWestr, Kyi, Lee Redden, Marinus Kuivenhoven, Mark Heising, Martin Paull, Meekay, meg noah, Michael Krugman, Moebiusol - Cristian, Orlando Bassotto, Parsee Health, Paul Peijzel, Richard Sundvall, Robson, Sam Lutfi, Shalva Bukia, Sinan Taifour, Tj Steyn, Ubiquity Ventures, Vahe Andonians, wolfee

▀▀▀
Writers: Sulli Yost
Producer & Director: Sulli Yost
Presenter: Henry van Dyck & Derek Muller
Editor: Jonny Lennard and Trenton Oliver
Additional Editor: James Stuart
Camera Operators: Sulli Yost & Henry van Dyck
Illustrators: Jakub Misiek & Maria Gusakovich
Animators: @twoswap, Andrew Neet, Jonny Lennard, Alex Drakoulis & Fabio Albertelli
Researchers: Aakash Singh Bagga & Callum Cuttle
Thumbnail Designers: Abdallah Rabah, Ren Hurley, Ben Powell & Daniel Ellacott
Production Team: Jess Bishop-Laggett, Glen Griffiths, Matthew Cavanagh & Anna Milkovic
Executive Producers: Casper Mebius, Gregor Čavlović & Derek Muller

Map data © OpenStreetMap contributors, available under the Open Database License: openstreetmap.org/copyright
Additional video/photos supplied by Getty Images and Pond5
Music from Epidemic Sound
Google Maps is unreasonably fast. Let me explainWhy Parallel Universes Are Probably RealHow To See AtomsThe Crystal That Could Destroy All MedicineSandwich Bag Fire StarterThe Genius of 3D Printed RocketsHow One Line in the Oldest Math Text Hinted at Hidden UniversesThe Rainiest Place On EarthThe Biggest Misconception in PhysicsThe Hidden Science of FireworksHow One Supernova Measured The UniverseThis game theory problem will change the way you see the world
Veritasium |

Google Maps is unreasonably fast. Let me explain

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER