Code Monkey home page Code Monkey logo

Hima Sajeev's Projects

16efl_20023798_leask_uber icon 16efl_20023798_leask_uber

Suppose that we think of the street network of a city as a graph, whose nodes are locations, and whose edges are labelled with the time it takes to traverse them. There are requests to the system which include a start location and a finish location, and a time stamp. Uber drivers fulfill requests in the order of their start time stamp, moves to the pickup location (one of the nodes, for simplicity), and then takes the passenger to the finish location they requested; and then fulfills the next outstanding request, and so on. You are given (a) the static data describing the city layout and street level transit times, and (b) a sequence of requests for service. The output of your algorithm is the total length of time that passengers spent waiting (i.e. a request start time was earlier than the arrival time of the Uber driver) and you should try to make this as small as possible. Start by assuming there are 2 Uber drivers, but discuss how you code (and results) would change if the number of drivers was an input to your system.

chapel icon chapel

a Productive Parallel Programming Language

coding-problems icon coding-problems

Solutions for various coding/algorithmic problems and many useful resources for learning algorithms and data structures

dsa icon dsa

Data structures and algorithms in C#

grpc icon grpc

The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

http_proxy-server icon http_proxy-server

http proxy server which handles GET request, user authentication and blacklisting of websites.Also implements caching.

ie-website icon ie-website

Website for The Institution of Engineers, NITK Chapter

ompl icon ompl

The Open Motion Planning Library (OMPL)

uber-passenger-ride-request-handling-algorithms icon uber-passenger-ride-request-handling-algorithms

Algorithm's to minimize cumulative wait time for passengers when routing from node A to node B. Implements Dijkstra's algorithm with linked lists to form the graph used for finding the shortest path in a weighted graph. Uses a semi-clever heuristic algorithm for choosing which rider to serve first given the current riders waiting to be picked up, and their requested destination travel time that would be required.

weightedgraph icon weightedgraph

Working example of a weighted graph which implements dijikstra's algorithm to find shortest path between queries

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.