Skip to content

The Journey Tracker is a C++ project designed to help users find the shortest path between metro stations numbered from 0 to 9. The program employs Dijkstra's algorithm, a popular and efficient method for finding the shortest paths in a graph.

License

Notifications You must be signed in to change notification settings

Tejk2004/Journey-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Journey-Tracker

The Journey Tracker is a C++ project designed to help users find the shortest path between metro stations numbered from 0 to 9. The program employs Dijkstra's algorithm, a popular and efficient method for finding the shortest paths in a graph.

KEY FEATURES:-

Graph Representation: The metro stations are represented as nodes in a graph, and the connections between them (with their respective distances) are represented as weighted edges. The graph is undirected, meaning the path can be traversed in both directions.

Efficient Pathfinding: Using Dijkstra's algorithm, the program computes the shortest distance from the user's current station to the desired destination. The algorithm efficiently finds the shortest path by exploring all possible routes and updating the shortest known distance for each station.

User Interaction: The program prompts the user to enter their current station and destination station. After validating the input, it calculates and displays the shortest path along with the total distance.

Path Reconstruction: Once the shortest path is determined, the program reconstructs the path taken from the source to the destination and outputs the sequence of stations to be followed.

About

The Journey Tracker is a C++ project designed to help users find the shortest path between metro stations numbered from 0 to 9. The program employs Dijkstra's algorithm, a popular and efficient method for finding the shortest paths in a graph.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages