Rustacean Station  cover image

Glidesort with Orson Peters

Rustacean Station

00:00

The Quadratic Worst Case of Malicious Algorithms

You could theoretically choose three random numbers that are just so low or so like out of whack that it would just become quadratic now. And the funny thing is in practice that doesn't happen. But that's why I mentioned earlier, the only way you hit this like quadratic worst case if you face a malicious attacker. You essentially say, okay, we did too many recursions. We're going to switch to a different algorithm now.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app