Skip to content

Application of shorter path search algorithm on bus stop board

Notifications You must be signed in to change notification settings

TitouCoch/Graph_Path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


"Graph Path"

Apply multiple algorithms on graphs

Grap :

The graph is composed of the 465 bus stop GPS coordinates of the BAB (Biaritz, Anglet, Bayonne) region in France

Development

I have developed a graph traversal application using Python and the libraries Tkinter and Graphics. The application applies various well-known algorithms such as A*, Dijkstra, Floyd-Warshall, and Bellman-Ford on a bus stop map. The application features a menu and a graphical map where the results can be observed.

Algorithms :

Algorithme Temps d'exécution (second)
Floyd Warshall 9.99
Bellman 1.036
Dijkstra 1.374
Dijkstra(priority queue) 0.956
A* 0.013
  import time
  start_time = time.time()
  #algorithms code
  print("--- %s seconds ---" % (time.time() - start_time))

This time test was done with the time library for a distance of 11,500 meters that we recover thanks to the GPS coordinate.

Note that the A* algorithm outperforms, it is particularly with the priority list and a heuristic function that checks that we do not deviate from the coordinates of the arrival point.

Final Application :

I realized a small menu to facilitate the choice of the user, he can choose the bus stops with a drop-down list or directly on the map, he can also choose the algorithm and acceleration

Screenshot 2022-09-20 at 12 24 58 PM


Here is the Result

Screenshot 2022-09-20 at 12 26 31 PM

Releases

No releases published

Packages

No packages published

Languages