Works for the csv files given in http://mat.uab.cat/~alseda/MasterOpt
-
Place input csv in data folder
-
Compile with
./compile.sh
-
./create_binary
to create the binary file -
./a_star <heuristic_number>
to run the algorithm with a chosen heuristic from list:- Dijkstra
- Haversine (default if no argument given)
- Spherical law of cosines
- Equirectangular approximation
-
Visualize results with
python ./results/visualization.py
(requisite: gmplot) -
Check results folder for csv and html with resulting path and comparison with Google Maps
By default the binary file is created as data/binary.bin, the path is computed
to go from node 240949599 to 195977239 and the result is stored in
results/optimal_path.csv
These can be changed with argv[2-5]
. An example of
a correct execution may be:
./a_star 2 771979683 429854583 data/binary.bin results/girona_lleida.csv
Contains source codes to be compiled with compile.sh
-
create_binary.c
reads csv file and generates binary file -
a_star.c
is the main module, calling functions froma_star_aux.c
-
utils.c/utils.h
contain shared function fora_star.c
,a_star_aux.c
andcreate_binary.c
Contains input csv's and binary files
Contains output csv's and html's with map
Pdf with report, images used in it and script to generate one fof them