Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Dijkstra's algorithm implementation in C++, using min-heap #344

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

OzPol
Copy link
Contributor

@OzPol OzPol commented Jun 10, 2024

Add Dijkstra's algorithm implementation in C++, using a min-heap.

Description

This pull request adds an implementation of Dijkstra's algorithm using a min-heap (priority queue).
The algorithm finds the shortest paths from the source vertex to all other vertices in a weighted graph.
The implementation includes a sample test case which can be uncommented in the main function for demonstration purposes.

Add Dijkstra's algorithm implementation in C++, using a min-heap.
Copy link
Owner

@kelvins kelvins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add the link to the README file?

src/cpp/Dijkstras_MinHeap.cpp Outdated Show resolved Hide resolved
Uncommenting main function in Dijkstras_MinHeap.cpp
Added a link to Dijkstra's Algorithm C++ implementation in Read.me
@OzPol
Copy link
Contributor Author

OzPol commented Jun 13, 2024

@kelvins I have uncommented the main function and added the link to the README file as requested. Can you please review the updated changes. Thank you!

I accidentally added that workflow configuration, apologies.
@kelvins kelvins merged commit 8fc02f3 into kelvins:main Jun 14, 2024
2 checks passed
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.

None yet

2 participants