AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
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.