Skip to content

Prasanth2123/Shortest-Path-find-using-dijkstra-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

This project finds the shortest path between two nodes in a weighted graph using Dijkstra's algorithm implemented from scratch (no libraries). It demonstrates algorithmic thinking, graph representation, and path reconstruction.

Dijkstra's algorithm systematically updates distances to each vertex starting from a source node, selecting the unvisited vertex with the smallest current distance each time.

  • Number of vertices and edges
  • Each edge as (u, v, weight)
  • Source vertex

Displays the shortest distance and path to every vertex from the source.

  • Time: O(V²)
  • Space: O(V + E)

About

using dijkstra algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages