Coder Social home page Coder Social logo

palani007143

code written by python 2.7

Download two files and Just give your input file path then run the python file Above files Answer for below Question

python assignment Ashoke, a young budding Travel Entrepeneur, is quite saddened after incurring loss from past several trips. He gets an offer from one of the travel agencies to carry out a trip. Ashoke is lit! This is his first venture towards making a profit. Travel agency provides Ashoke the distances between every pair of locations he needs to cover. He can start and end at any two (different) locations he wants, but he must make sure that he takes travellers to visit each location exactly once. Now, help Ashoke to maximize his profits by suggesting him the shortest distance he can travel to achieve this? For example, given the following distances: Bangalore to Hubli = 464

Bangalore to Dharwad = 518

Hubli to Dharwad = 141

The possible routes are: Hubli -> Bangalore -> Dharwad = 982

Bangalore -> Hubli -> Dharwad = 605

Bangalore -> Dharwad -> Hubli = 659

Hubli -> Dharwad -> Bangalore = 659

Dharwad -> Hubli -> Bangalore = 605

Dharwad -> Bangalore -> Hubli = 982

The shortest path here is Bangalore -> Hubli -> Dharwad = 605, so the answer is 605 for this example. Help Ashoke! Find the input file in the repository

palani007143's Projects

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.