Titou Coch

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.

You can find the algorihtmes code on my git hub repository : https://github.com/TitouCoch/AglorithmeRecherchePlusCourtChemin

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


Here is the Result