Giter Site home page Giter Site logo

lauragalera / queries-flights Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20.2 MB

Queries against flights, airports, airlines, and routes data to practice the efficient use of data structures in C++

License: Apache License 2.0

Makefile 0.80% C++ 73.61% CSS 25.51% Shell 0.08%
data-structures pointers

queries-flights's Introduction

Flights

The program starts by reading five files and loads the data in appropriate data structures in c++ to query information quickly and efficiently. The first four files contain data regarding airports, airlines, planes and routes belonging to OpenFlights, and the format is dat. The fifth file is a CSV reporting a set of flights. It can be found in this repository under the name ''T_ONTIME_REPORTING_2019_6.csv''.

There is a list of queries retrieving information that combines the previous files. The available queries are:

  • "COUNT ROUTES"

    Displays how many national and international routes each company has in alphabetic order.

  • "MOST USED PLANE",IATA

    Displays the plane model used in more routes for a specific company (IATA code).

  • "DEPARTURE DELAY AIRPORTS",n,year,month,day_of_month

    Lists the n (0 = all) airports with more delays in their departures given a specific date. They are ordered decreasingly.

  • "ARRIVAL DELAY AIRPORTS",n,year,month,day_of_month

    Lists the n (0 = all) airports with more delays in their arrivals given a specific date. They are ordered decreasingly.

  • "DEPARTURE DELAY AIRLINES",n

    Lists the n (0 = all) airports with more delays in their departures. They are ordered decreasingly.

  • "ARRIVAL DELAY AIRLINES",n

    Lists the n (0 = all) airports with more delays in their arrivals. They are ordered decreasingly.

  • "DAY WITH MORE DELAYS",IATA_1,...,IATA_N

    Lists the day with more delays, arrivals and departures, for a set of airports (empty set = all aiports).

To automatize the queries, the program can receive a text file as a parameter that contains all the queries line by line. "queriesMeves.txt" is an example of file, and it is located in playtesting. It is redirected by doing:

./main < /data/u/alum/u1959173/eda/p1/jocProves/queries/queriesMeves.txt

queries-flights's People

Contributors

lauragalera avatar

Watchers

 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.