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

Not to mention that QuickSort isn't a single algorithm but rather a class of algorithms (as the choice of pivot is left unspecified), and there are methods to choose the pivot that give O(n log n) worst case or O(n log n) expected running time (e.g. median of medians or soft heaps for the former, random choice for the latter).


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

Search: