Comment by anyfoo

5 years ago

I don't know why you have been downvoted, you do have a point. Algorithms are tailored towards specific purposes. If you for example have something that runs with an n of about 5, and it's not in a hot path, the clear concise solution may well be better. Besides, with small n there is more to the cost of an algorithm than just its asymptotic growth.

However, to the point of the person you've replied to: It's good to know that stuff to be able to assess the situation in the first place.