Professional Documents
Culture Documents
Before launching the there product in the market they studied the
situation and maintained constant eye on the industry for several
years. They wanted to wait until there was enough data for the
ridesharing service. They ran a simulation on existing Ola Classic
journeys (non-shared) in May and discovered that over 80% of rides
in Mumbai shared a major chunk of their route with another ride.
only a small percentage of the city’s automobiles were Ola rides, yet
the bulk of those could potentially be connected with other
passengers. This was a great potential to transform transportation
and provide its passengers with more cheap services.
Design Decisions
The main design decision was made for the passengers in which they
would enter their origin and destination, receive a fare for the ride.
And then be placed in a matched pool for 1 minute before being
allocated a driver.
Finding drivers for all of their passengers at the same time would
cause a supply shock, as we’d need to have a pool of drivers ready at
the ten-minute mark. A ten-minute gap meant passengers had to
wait longer before being shown their itinerary. Given that the initial
implementation was likely to have some flaws, a ten-minute delay
might be excessive if they were then matched incorrectly. Finally,
they determined that the one-minute matching pool would provide
the best experience for their passengers and was what Ola’s on-
demand users had grown to anticipate.
Geo-hashing
Improvements
Rerouting
Many efficiency gains were made along the road, but the algorithm’s
next big step was to adapt to a well-established product with
considerable demand. Their greedy algorithm was designed to locate
a match, and they went with the first one that presented itself. As
Line evolved to become the majority of Ola trips in Mumbai, they
couldn’t just pick the first match they came across because that
would waste a lot of time. They had to discover the finest potential
match instead. This entailed taking into account all system riders as
well as forecasting future demand.
This became something of a maximum matching problem for a
weighted graph mixed with components of a Secretary Problem for
those interested in Algorithms. The ideal approach would combine
an accurate forecast of future demand with an algorithm that
searched for all possible matches before selecting one. It was an
ambitious adjustment to overhaul the architecture to handle the
problem in this way, and given the agile mindset, they realized there
was an interim step they could take — Route Swapping.
Algorithm