# Sequence Alignment for Ride Sharing

- Speaker: [Dalya Gartzman](/wiki/speakers/dalya-gartzman.md)
- Event: [Reversim Summit 2018](/wiki/years/2018.md)
- Video: https://www.youtube.com/watch?v=rZSdHKyp55M
- Transcript: [/transcripts/2018/24-rZSdHKyp55M.md](/transcripts/2018/24-rZSdHKyp55M.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [Algorithms](/wiki/topics/algorithms.md), [Performance](/wiki/topics/performance.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker discusses the algorithmic challenges of ride-sharing systems, specifically how to efficiently find the best vehicle route for multiple passengers. By comparing the combinatorial explosion of ride routes to DNA sequence alignment, the speaker developed a custom algorithm called inductive ride sharing. This approach significantly reduces the number of candidate routes that need to be evaluated, dropping runtime from unfeasible levels to just seconds. The talk demonstrates how drawing inspiration from seemingly unrelated fields can lead to creative solutions for complex engineering problems.

## Key points

- [1:06](https://www.youtube.com/watch?v=rZSdHKyp55M&t=66s) The core ride-sharing problem involves finding the best route and vehicle assignment for multiple passengers with different origins and destinations.
- [6:27](https://www.youtube.com/watch?v=rZSdHKyp55M&t=387s) The number of possible legal ride routes scales exponentially with the number of passengers, quickly reaching millions of combinations.
- [8:32](https://www.youtube.com/watch?v=rZSdHKyp55M&t=512s) Inspired by discussions on DNA sequence alignment with colleagues, the speaker explored finding structural similarities in route combinations.
- [12:51](https://www.youtube.com/watch?v=rZSdHKyp55M&t=771s) The custom sequence alignment algorithm merges two valid ride routes into a conflict-free combined route for a larger group of passengers.
- [16:59](https://www.youtube.com/watch?v=rZSdHKyp55M&t=1019s) Using an inductive approach, the algorithm builds up solutions for larger passenger groups by leveraging previously evaluated sub-routes.
- [21:29](https://www.youtube.com/watch?v=rZSdHKyp55M&t=1289s) The inductive ride-sharing algorithm drastically reduces the number of queries needed against the core scoring machine, from millions to just a few thousand.
- [22:46](https://www.youtube.com/watch?v=rZSdHKyp55M&t=1366s) While a naive brute-force approach fails to complete, the optimized algorithm solves the routing problem for six passengers in 28 seconds.

## Takeaways

- Look for inspiration in unexpected domains and fields when tackling difficult technical challenges.
- Share complex problems with colleagues to spark creative solutions and fresh perspectives.
- Reduce search spaces algorithmically rather than relying on brute-force evaluation for exponential problems.

## Questions this talk answers

- How can you optimize a combinatorial routing problem with an exponentially growing search space?
- What is inductive ride sharing and how does it reduce the complexity of passenger grouping?
- How can concepts from bioinformatics, like sequence alignment, be adapted for transportation logistics?

## Tags

algorithms, combinatorics, inductives, optimization, problem solving, ride sharing, sequence alignment
