akshitagit / CPP

Repository for C++/C codes and algos.
https://github.com/akshitagupta15june
MIT License
493 stars 434 forks source link

Add DijkstraAlgorithm.cpp file #654

Closed Abdullah-Sheikh closed 3 years ago

Abdullah-Sheikh commented 3 years ago

Dijkstra's algorithm allows us to find the shortest path between any two vertices of a graph.

It differs from the minimum spanning tree because the shortest distance between two vertices might not include all the vertices of the graph.