Загрузка...

How Algorithms Met Your Mother ☂️

Ted Mosby took 9 years to find "The One." This algorithm does it in 1 millisecond. ☂️

If dating apps calculated the distance between you and every other user, their servers would crash instantly (O(N) complexity).

Instead, apps like Bumble and Hinge use Google S2 Geometry.

1. They project the Earth onto a Cube.
2. They divide the cube into tiny grid squares (Quadtrees).
3. Your location becomes a simple number (Cell ID).

The database doesn't do geometry. It just looks for people standing in the same box as you.

📺 Watch more Backend Tips here: https://youtube.com/playlist?list=PL8QeIy2Ih2v449oEqLQ4czEVeGIh1vsVK&si=1nVl3vkDtuwySEba

🔔 Subscribe for more Backend Engineering & System Design tips!

#SystemDesign #HowIMetYourMother #Bumble #Hinge #SoftwareEngineering #Coding #GoogleS2 #Algorithm

Видео How Algorithms Met Your Mother ☂️ канала Zero Downtime
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять