Skip to content

Added Dijkstra's Shortest Path Algorithm in C++#74

Open
crazyjutt01 wants to merge 2 commits into
Nikhil-2002:mainfrom
crazyjutt01:main
Open

Added Dijkstra's Shortest Path Algorithm in C++#74
crazyjutt01 wants to merge 2 commits into
Nikhil-2002:mainfrom
crazyjutt01:main

Conversation

@crazyjutt01

Copy link
Copy Markdown

Title: Added Dijkstra's Shortest Path Algorithm in C++

Description:
This PR adds a clean and efficient implementation of Dijkstra’s Algorithm for finding the shortest path in a weighted graph using an adjacency list and a priority queue.

Features:

Efficient O((V + E) log V) complexity

Demonstrates priority queues and graph data structure

Beginner-friendly code with clear comments

Uses STL containers for simplicity and readability

Tested on:
✅ C++17
✅ Works on GCC and Clang compilers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant