Git Product home page Git Product logo

search_path's Introduction

Testing project to search journey path from start point to end point.

Description task: Search Shortest path in an unweighted oriented graph (details in ./task_description.txt)

File with data: ./listCards.txt. Format:

from;to;time;transport;cost;seat;info

Usage:

php ./index.php 'New York JFK' 'Stockholm'

Where: first param - start point of journey, second param - end point of journey

Result:

Details your journey from 'New York JFK' to 'Stockholm': 
Variant #0 
#0: Take train from 'New York JFK" to "Madrid". Seat: 120 , Additional info:No
#1: Take flight A190 from 'Madrid" to "Gerona Airport". Seat: 25A , Additional info:info
#2: Take flight SK455 from 'Gerona Airport" to "Stockholm". Seat: 15A , Additional info:info
Total cost: 530$ 
Time in road: 600 min 
----------------------------------
Variant #1 
#0: Take moto from 'New York JFK" to "Barcelona". Seat:  no info , Additional info: -
#1: Take flight FT450 from 'Barcelona" to "Stockholm". Seat: No seat assignment , Additional info:info
Total cost: 650$ 
Time in road: 164 min 
----------------------------------

Run tests

php ./tests/testSearchPath.php

search_path's People

Contributors

efimov82 avatar

Watchers

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