GithubHelp home page GithubHelp logo

postmandijkstra's Introduction

PostManDijkstra

Implementation of Dijkstra algorithm for custom problem.

Idea is to send a letter to each city (node), while postman (edge) has time-schedule of when he lefts the town. Transfer cost is 0 (postman goes from city A to B and back in given times). Starting city (node) is always 1. Goal is to find quickest way to contact each node.

Developed in: Microsoft Visual Studio Community 2019 Version 16.6.0

Input 1

1 - number of maps

3 2 - number of cities and number of postmen

3 2 1 - City A and City B where postman 1 operates and number of departure times

20 - his departure time(s)

2 1 1 - another postman

20

Output 1

20 - Time that's needed to contact all nodes

Input 2

1

3 2

1 2 2

50 51

2 3 3

29 30 31

Output 2

129

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.