-
code - Contains the python codes for the four algorithms: BnB, Approx, LS1 (Simuated Annealing), and LS2 (Hill Climbing)
-
output - contains the solution and trace files for the four algorithms across 11 graphs from the 10th DIMACS challenge (directory not uploaded)
-
run_files.sh - Bash file to execute the algorithms with different graphs and input parameters
Our code uses Python 3.7
For running the codes, you will need to install the following libraries:
- networkx
- time
- random
- numpy
Run specific files and input parameters:
$ main.py -inst <filename> -alg [BnB|Approx|LS1|LS2] -time <cutoff in seconds> -seed <random seed>
Run all the files using the bash file:
$ bash run_files.sh