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

Added code for Dijkstra algorithm in cpp #628

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aanchal-1204
Copy link

An optimized C++ implementation of Dijkstra's algorithm that takes user input for the graph. This code uses a priority queue for efficient edge relaxation, achieving a time complexity of 0((V+E)Llog V) where V is the number of vertices and E is the number of edges.

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