Dijkstra vs Bi-directional Dijkstra Algorithm on US Road Network @meyavuz
Dijkstra vs Bi-directional Dijkstra Algorithm on US Road Network  @meyavuz
Uploaded May 2017 | Updated November 2026, 3 hours ago
Here, we compare the progression of classical and bi-directional Dijkstra Algorithms as applied to US road network. The road network is intentionally sampled and reduced to a minimum spanning tree for easier visualization. The real connections between nodes can be different than what is shown here.

Note that for this particular set of points and starting and target nodes, the classical Dijkstra takes 493 steps, i.e. 493 nodes are processed in the graph. On the other hand, for the bi-directional Dijkstra it processed 285 nodes which is roughly ~58 percent less number of nodes.

For further details of the data used in this animation and some extra stuff, please check the blog post and do not forget to comment: wp.me/p1mKpD-co

The underlying algorithm has been written in C++ but all visualization is via Python's matplotlib library. Basically, snapshots of each progression has been saved as png file and later combined with a 3rd party software for conversion to video.

0:00 Uni-directional Dijkstra
0:47 Bi-directional Dijkstra

#dijkstra #dijkstrasalgorithm #graphalgorithm
Dijkstra vs Bi-directional Dijkstra Algorithm on US Road NetworkBassekou Kouyate Live Concert in Portland Oregon - US TourWhy EVERY Satellite Dish Is Parabolic 📡 #shorts  #physics #antennaFourier Series Reconstruction On Map Contours using MatlabBeamforming by Phased Array Antennas 📡 - A visual exampleThe FFT Explained: How to Compute a Fourier Transform 1000× Faster (4K)🇹🇷 Black Sea Region Part 23 - Karagöl, Borçka, Road to CamiliSpectrograms & the STFT Explained: How We See Sound (Visualized in 4K)FDTD Simulation of a Half Convex Lens (Animation)Diffraction from Double Slits (Youngs Double Slits) [FDTD Simulation]🇹🇷 ⚽ Fenerbahçe SK Stadium and Museum TourShipspotting in Gorgeous Bosphorus Strait in Istanbul
meyavuz |

Dijkstra vs Bi-directional Dijkstra Algorithm on US Road Network

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER