Giter VIP home page Giter VIP logo

tube-journeys's Introduction

Path-Finder

Personal project testing out implementation of network algorithms on the London Tube Map.

File layout

Testing candidate solutions in roughandready.py before commiting these to main.py, which will have appropriate class/function structure.

Progress

  • Imported tube map into a matrix
  • Set-up dictionary for name references
  • Function returning shortest journey in a graph
  • TODO NEXT: Function returning shortest journey given fixed start station

CSV Map Source

The data used for this project is freely available here: https://commons.wikimedia.org/wiki/London_Underground_geographic_maps/CSV

Planned implementation

Using scipy sparse matrices (time/memory saver compared to multiple adjacency lists) to store a sparse adjacency matrix which represents the tubemap as an edge-weighted, non-directional, connected network. Stations are represented by numerical indices, and so a dictionary is used to hold the key/value pairs of station numerical index to name.

Minimum spanning trees

  • Exploring implementation of Primms and Kruskal's algorithms to produce a minimum spanning tree (MST).

Finding shortest journey

  • This will involve implementing Dijkstra's algorithm for shortest path to minimise the journey between any two stations.

Travelling Salesman

  • Visiting all stations in opimum length of time. -- Implement candidate solution using MST, random descent, steepest descent, simulated annealing, tabu.

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.