Skip to content

The program maintains a map of a city comprising intersections and roads connecting the intersections in a graph structure and provide the functionality to find the shortest path between any two inter sections in a city using Dijkstra’s algorithm

Notifications You must be signed in to change notification settings

sarabjeet1313/Shortest-Path-Locator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Shortest-Path-Locator

The program maintains a map of a city comprising intersections and roads connecting the intersections , in a graph structure and provide the functionality to find the shortest path between any two inter sections in a city using Dijkstra’s algorithm To add a new intersection in a city , the program offers a function. User provides the x, y coordinate for the intersection and the program will consider them to add it in a new intersection list. The program also allows the functionality of adding roads between the existing intersections by providing coordinates in the defineRoad function. Once the connections between intersections are made, user can call the navigate function with source and destination intersection coordinates to get the shortest route between them. The path output will be printed on screen with each intersection on separate line and coordinates as tab separated.

About

The program maintains a map of a city comprising intersections and roads connecting the intersections in a graph structure and provide the functionality to find the shortest path between any two inter sections in a city using Dijkstra’s algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages