GithubHelp home page GithubHelp logo

matthew29tang / transporta Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 70.42 MB

CS170 Final Project - A greedy approximation solver for NP-hard variant of Travelling Salesman Problem

Python 100.00%

transporta's Introduction

CS 170 Fall 2019 Project

Matthew Tang, Christianna Xu: Group 117

Usage

  • Generate outputs: py .\solver.py --all inputs outputs (~5min w/ multicore)
  • Local Autograder: py .\autograder.py --all inputs outputs (~7min w/ multicore, caching)
  • Superscorer: py .\superscorer.py inputs outputs_folder1 ... outputs_foldern (~1.5hrs)
  • Add --disableMulticore to disable Multicore for autograder and solver
    • Note that Multicore supresses runtime errors
  • Add -v for verbose autograder output

Scores

Footsteps v0: 40.7345 (Deprecated)

Footsteps v2: 39.28

Footsteps v3: 39.273

Footsteps v3.5: 43.645

Footsteps v4: 39.019

Christofides v1: 60.780

Final superscore: 38.74 (Top 22% on leaderboard)

Instructions:

  • Footsteps is the default solver. To switch to Christofides, uncomment out and return the solve call in solver.py
  • Footsteps v4 is the final version
  • Footsteps v2 uses smart_output instead of smarter_output. See the final report for more details.
  • Footsteps v3 does not use a saturated set. See the final report for more details.
  • Footsteps v3.5 had a bug where the newHomes was incorrectly calculated. But somehow, some of the outputs were better so the outputs were still superscored. See the final report for more details.

transporta's People

Contributors

matthew29tang avatar s-xuchr 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.