Skip to content

Comments

Add Dijkstra's shortest path algorithm with example and README update#1205

Merged
ghostmkg merged 1 commit intoghostmkg:mainfrom
sasi-upparapalli:add-dijkstra-algorithm
Oct 31, 2025
Merged

Add Dijkstra's shortest path algorithm with example and README update#1205
ghostmkg merged 1 commit intoghostmkg:mainfrom
sasi-upparapalli:add-dijkstra-algorithm

Conversation

@sasi-upparapalli
Copy link
Contributor

Implemented Dijkstra's algorithm to find the shortest path from a starting node to all other nodes in a weighted graph with non-negative edge weights. This algorithm is added as dijkstra.py in the Algorithms/ folder along with an update to the README describing the algorithm, its time complexity, and usage. This is a common and useful algorithm suitable for many network and pathfinding problems.

@ghostmkg ghostmkg merged commit 2764ab7 into ghostmkg:main Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants