Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You are commenting under blog post that tried to explain it and got it wrong. It is not simple.

Examples:

- algorithm with O(2^n) complexity might be faster for your problem than O(1) algorithm

- the same algorithm may be O(2^n) or O(n³) depending how you define size function

This is not straightforward.



that's why he said it describes how runtime behaves as input size changes, not how it behaves for specific values


It is though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: