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
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








![Diffraction from Double Slits (Youngs Double Slits) [FDTD Simulation]
The double slit diffraction is illustrated via the use of finite-difference time-domain (FDTD) simulation. Two sets of double slits with different widths and a single slit - for comparison - are illuminated by normally incident plane waves. When the impinging plane waves reach the slits, they are diffracted into a series of circular waves. In the case of double slits, constructive and destructive interferences create dark (null) and bright spots.
Diffraction is basically the phenomenon involving the bending of waves around obstacles and the spreading out of the waves past small openings. Huygens Principle states that every point on a wavefront acts as a source of tiny wavelets moving forward with the same speed as the wave and the wavefront is the surface tangent to these wavelets.
Beugung, Difracción, Diffrazione, Kırınım, 回折, Дифракция, Diffractie, Difração, 衍射, Dyfrakcja, Diffraktion, Interferenz, Interferencia, Youngs slit, Diffraction from Double Slits (Youngs Double Slits) [FDTD Simulation]](https://i.ytimg.com/vi/4pYWIj7xDqs/mqdefault.jpg)

