Nikhil-2002 / Programming_Hactoberfest23

10 stars 75 forks source link

Added Dijkstra's algorithm #89

Open Souradeephazra123 opened 10 months ago

Souradeephazra123 commented 10 months ago

Dijkstra's algorithm is used to find the shortest path in a weighted graph, where the edge weights are non-negative. Here's a simple C++ implementation of Dijkstra's algorithm to find the shortest path from a source vertex to all other vertices in a weighted graph represented as an adjacency matrix.