Skip to content

Group project for the class "Design and Analysis of Algorithms"

Notifications You must be signed in to change notification settings

louisabraham/INF421-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shortest Path Trees and Reach in Road Networks

Louis Abraham and Sayuli Drouard

January 2017

Assignment url: https://www.irif.fr/~kosowski/INF421-2016/problem.html

Take a look at the PDF report!

How to run

  • To run demo.py, simply edit the parameters.
data:
    source file of the graph
logging:
    file where the points are logged when the logging parameter is used in the appropriate functions
timeit.activated:
    boolean that toggle the display of timings to stderr
  • multiple_example.py is a simple example over a graph with multiple shortest paths, it should be run as provided, and is really useful to test some modifications of the functions.

  • test_reach.py uses almost the same parameters as demo.py. For the others:

tests:
    list of vertices we want to compute the reach
number_of_random_tests:
    no explication needed
  • compute_reach.py computes the reaches of random vertices from the data parameter and prints the result in the log file. You can give the number of random vertices as parameter or input it by hand.

  • launch.sh a b launches a independant instances of compute_reach.py with the parameter b.

  • plot.py reads the logfile filled by compute_reach to show histograms.

Thanks

About

Group project for the class "Design and Analysis of Algorithms"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published