Skip to content

sondosaabed/World-Map-Dijkstra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

World-Map-Dijkstra

This project was done as part of algorithm course BZU.
"Idea. The naive implementation of Dijkstra’s algorithm examines all V vertices in the graph. An obvious strategy to reduce the number of vertices examined is to stop the search as soon as you discover the shortest path to the destination. With this approach, you can make the running time per shortest path query proportional to E’ log V’ where E’ and V’ are the number of edges and vertices examined by Dijkstra’s algorithm. However, this requires some care because just re-initializing all of the distances to ∞ would take time proportional to V. Since you are doing repeated queries, you can speed things up dramatically by only re-initializing those values that changed in the previous query."

input file

number of countries, number of adjacens country1, x, y .... country1, country2, weight (distance) ....

image

x and y for the countries are added to a transparent fridpane as follows:

map

App Screenshots:

Browse file scene:

image

Show the map scene:

image

Show the shortest path scene:

image

About

World map Shortest Path Dijkstra Optimized using priority queue

Topics

Resources

Stars

Watchers

Forks

Languages