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

It's constant with regards to the length of the input array, which is the usual metric for sort algorithm performance. That is, d(runtime)/d(len(input)) can be constant, even though d(runtime)/d(max(input)) is not, if you assume that len(input) is independent from max(input) (which is inconsistent with input having uniformly distributed random members, which is probably the more common assumption).


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

Search: