Coder Social home page Coder Social logo

dijkstras-demo's Introduction

Demo of Dijkstra's Algo

Demo

Travel Permutations From Origin to Destination:

  • Rio de Janeiro
    • New York City
    • Chichen Itza
    • Toronto
  • Paris
    • Toronto
    • Rome
    • Moscow
  • New York City
    • Calgary
    • Kuala Lumpur
  • Calgary
    • Chichen Itza
    • Kuala Luumpur
    • Toronto
  • Chichen Itza
    • Rio de Janeiro
  • Kuala Lumpur
    • Moscow
    • Rome
    • Paris
  • Moscow
    • Rome
    • Toronto
  • Rome
    • Moscow
    • Calgary
  • Toronto
    • New York City

Requirements

  • Travelling from one city to another, with each of the routes listed above, takes exactly 1 hour.
  • If you want to travel to a city not available at your current city terminal, you would have to transfer
  • Each transfer route also takes exactly 1 hour
  • After each teleport, you arrive at a different city
  • A customs check is required for every leg of your journey, even if you are transferring or if you have reached your final destination
  • If the city you arrive in is NOT your home city, the customs process to verify your travel documents adds an extra hour onto that leg of your journey.
  • Basic command line program for its customers to determine if a journey from a starting city to a destination city is possible in a provided number of hours.
  • Provide information about each city
    • Every new entry will get a new line and it will be formatted “CityID:City Name”.
  • Provide the routing information for each city to indicate which destinations can be reached.
    • Every new entry will get a new line and it will be formatted “CityID>DestinationCityID”.
  • Finally, the customer loop will take the set of customer parameters for calculating if a route is possible from one city to another.
  • Identify if the route was successful or no route could be found in the time limit provided
  • Display list of cities that will be visited from start to finish. List out each city in order and the total travel time
  • Display the shortest route possible between the two cities

Concessions

  • App is bloated due UI packages installed
  • Unit testing foregone

dijkstras-demo's People

Contributors

tonyea 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.