Giter Site home page Giter Site logo

yunheyue_final_project's Introduction

yunheyue_final_project ✈ī¸ 🛩ī¸ ✈ī¸

worldmap3

Presentations Video:

Github files structures


|--data--
        |
        --data_project (Store input airport files and routes files)
|--entry--
         |
         --main.cpp (file for user to execute the program )
|--lib (store cs255 and lodepeng that are copied from mp_maze)
|--src (file to store all function declaratons and defintions[code])
|--tests (store test suites)
|--result (store the output(result) )
|--README.md (running instructions and program organization)
|--result.md (written report)

Instructions of how to run this program

Download project to your local with git clone command:

git clone https://github.com/YQiu-oo/yunheyue_final_project.git

Make a build directory and let the cmake command workable before running program

mkdir build
cd build
cmake ..

Excute the program

execute the program with make first or make main, then there are two required arguments for user to input: ** Notice **

  1. the data file for airport execute the program with make first or make main, there are two required data file for user to input:
  2. the location of data file for airports.
  3. the location of data file for routes.

Notice : All input data files should put into the data --> data_project folders, the format will look like this: ../data/data_project/airports.dat

make | make main
./main [your airport data file path] [your routes data file path]

Then it will pop up all options for user to select :
image

Description of Test Suites

All test suites are in the tests folder, there are two testing file:

  1. test_graph.cpp, there are 8 test cases for the follwing:
  • BFS (bread first search)
  • Floyd Warshall Algorithm
  • Adjacency Matrix
  1. test_data.cpp, there are 4 test cases for the follwing:
  • read_airports_file
  • read_routes_file

Description of Test Suites

Command to run the test suites

make test
./test

Project Demo

First make main, and use ./main first.dat second.dat to input the data set you want.

f539f2e6ea48665d0d33cbbc61193e1

Input 1 to test shortest path by distance. Input Wewak as source airport, and input 0 to choose the first airport in this city.Then Input Sondrestrom as destination airport and input 0 to choose the first airport in this city.

3bd610cc4711c72de34c50ef043d7a8

The route in word and the route in graph are generate

436b623c20a0eaa9b8b06036b88d7ce

Input 2 to test shortest path by number of stops. Input Wewak as source airport, and input 0 to choose the first airport in this city.Then Input Sondrestrom as destination airport and input 0 to choose the first airport in this city.

9e65abfa20700070d40ee0f3591e8d7

The route in word and the route in graph are generate

13c0daf7cdcb1a7e8ae23fefe6161f1

Input 0 to exist the program

e7e67d325157f701779d517ebcfb7d3

yunheyue_final_project's People

Contributors

yqiu-oo avatar yyu6969 avatar raysuan avatar rongjianyi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.