Code Monkey home page Code Monkey logo

subway-navigation's Introduction

Subway Navigation

C

Subway Navigation finds optimal path for Korean subway navigation. It uses dijkstra algorithm to find the shortest or minimum transfer path.

How it Works

  1. Execute the program by entering gcc ./subway_navigation.c && ./a.out to console
screenshot step 1
  1. Enter departure station name
screenshot step 2
  1. Enter destination station name
screenshot step 3
  1. Enter method

4-1. Shortest path

screenshot step 4-1

4-2. Minimum transfer path

screenshot step 4-2
  1. Outputs optimal route and estimated time with number of total subway station visits

5-1. Shortest path

screenshot step 5-1

5-2. Minimum transfer path

screenshot step 5-2

Subway Data

Estimated travel time and estimated transfer time data is available in data folder. The data file format is csv.

  • 1지선
  • 1호선
  • 2지선
  • 2호선
  • 3호선
  • 4호선
  • 5지선
  • 5호선
  • 6호선
  • 7호선
  • 8호선
  • 9호선
  • 경의선
  • 경춘선
  • 공항철도
  • 분당선
  • 인천1선
  • 중앙선
  • 역이름
  • 환승정보

Exception Handled

  • Failed to read csv file
  • Unavailable or incorrect station name inputted
  • Inputted departure station name and destination station name are matching
  • Incorrect method inputted

subway-navigation's People

Contributors

nogamsung avatar

Watchers

 avatar

subway-navigation's Issues

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.