Giter Site home page Giter Site logo

self-driving-cars-graph's Introduction

Modeling Map Using Graph Theory

Project Proposal

  • This project will tackle the common problem of modeling maps. When we use maps we always want choose the fastest route or sometimes safest route. The entire premise of Google Maps is using a big giant graph with nodes and edges to figure out fastest or shortest way to travel. That’s all Google Maps is–a big graph with lots of nodes and edges.resource

Getting Started

This project solve the followings:

  1. Shortest Path from A to B(using Dijkstra's algorithm)
  2. The busiest intersection(most connected vertex)
  3. Find near me(find all location near by specified miles)

Graph component specific to this project:

  • Vertices are the locations on the map.
  • Weights are the distance(in miles) between them.

Details

  • It is assumed that the graph is undirected
  • Documentation can be found here
  • Blog post on medium

Installing

Clone the project

git clone https://github.com/Sukhrobjon/self-driving-cars-graph.git

Running on Terminal

cd self-driving-cars-graph

python3 run.py Graphs/inputs/maps_data.txt

Sample Output

=========================Visualize the map: Make a graph=========================
Vertices: ['A', 'B', 'C', 'D', 'E', 'F', 'G']
Number of Edges: 9
The Edge List:
('A', 'D', 15)
('A', 'E', 12)
('A', 'F', 72)
('A', 'G', 7)
('G', 'B', 55)
('B', 'C', 12)
('C', 'D', 7)
('D', 'E', 33)
('E', 'F', 11)
=========================Problem One: Fastest Route=========================
Fastest route from A to C is: A->D->C with total distance of 22 miles!
=========================Problem Two: Busiest Intersection=========================
A connected 4 of intersections.
=========================Problem Three: Find near me=========================
These locations are 25 away from A.
Locations are: C, D, E, F, G

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

self-driving-cars-graph's People

Contributors

sukhrobjon avatar

Stargazers

Shyamsundar avatar Srinivas Venkatanarayanan avatar

Watchers

James Cloos avatar  avatar

self-driving-cars-graph's Issues

Final Project Feedback

Final Project Feedback

Overall 20/ 33 (> 20 Passing):

  • Proposal 1/4
  • Code Graph Data structure 3/4
  • Code: Solution 1: 3/4
  • Code: Solution 2: 3/4
  • Code: Solution 3: 3/4
    • Solutions work on hardcoded graph file. There is no discussion of working at scale.
  • Code Documentation 2/4
  • Code Testing 1/4
    • add tests around all methods
  • Blog / Presentation 4/5
    • Good start, make sure you discuss all solutions and provide information on how the algorithms work.

Proposal Feedback.

Proposal 1/4 - Please resubmit for full points and to verify your project will meet the requirements.

Your proposal needs to have the problem context and how it is described as a graph as well as the three things you want to solve in this context and the algorithms you will use to do this.

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.