OpFlights (OpenFlights Optimal Flights)
Project Team: Ben Thuma, Jing Lin, Katrina Pang, John Li
Important Files
readFromFile.hpp
andreadFromFile.cpp
Code to read airports and routes data file into vectorsGraph.h
andGraph.cpp
Code to create the graph data structure from vectorsHeap.h
andHeap.cpp
Code to create the priority queue used for Dijkstra and A*searchAirportTraversal.h
andAirportTraversal.cpp
Code to create the BFS iterator on the graphDijkstra.h
andDijkstra.cpp
Code to run Dijkstra's algorithm on the graphA_search.h
andA_search.cpp
Code to run A*search on the graphmain.cpp
Main code that provides prompts for the user to use the functionstests/tests.cpp
Code containing the test filestests/..
Folder containing the data files
Instructions
Building and using main
make
to build main.cpp./finalproj
to run main.cpp- Data should be placed in tests folder; download
airports.dat
androutes.dat
from OpenFlights Dataset - When prompted for the data, enter
tests/airports.dat.txt
for airport data andtests/routes.dat.txt
for route data - There are no output files; all outputs are shown in the console
Building and using test
make test
to build tests/tests.cpp./test
to run the test