Ayu-hack / Hacktoberfest2024-1

This is repo to create some pull requests and completing hacktoberfest 2024 easily. All request will be accepted. Genuine Pull Request will promoted also. #hacktobefest #hacktobefest2024 #hacktobefest-accepted Resources
46 stars 466 forks source link

Implementation of Dijkstra Algorithm to find the shortest path #96

Closed kishan-25 closed 1 month ago

kishan-25 commented 1 month ago

Dijkstra's Algorithm Implementation Overview

Overview Dijkstra's algorithm is a well-known graph search algorithm designed to find the shortest path from a source node to all other nodes in a weighted graph. This implementation utilizes an adjacency matrix representation.

Key Components

Graph Representation

Distance Array

Stat Array

Finding the Minimum Distance Node

Initialization

Main Loop

Relaxation

Output

Example Usage

Conclusion This implementation effectively demonstrates Dijkstra's algorithm for finding the shortest paths in a graph. The choice of an adjacency matrix allows for straightforward graph representation and manipulation. The algorithm's time complexity is (O(V^2)), where (V) is the number of vertices, making it suitable for the graph size (53 vertices).

kishan-25 commented 1 month ago

I hope this message finds you well! I’d like to request that this issue be assigned to me under the label of Hacktoberfest2024. Thank you!

Ayu-hack commented 1 month ago

Already exists. Bring something new n unique buddy. More repos are available for pull requests, and they’re part of Hacktoberfest 2024. Feel free to tag me in your Hacktoberfest certificate or badges LinkedIn post! 😄

👉 Follow my GitHub and connect with me on LinkedIn! ⭐ Star these repos to stay updated for next year’s Hacktoberfest!