May 2019
Beginner to intermediate
800 pages
21h 59m
English
Sorting algorithms are usually covered in great detail in algorithms books for several reasons.
This chapter describes several different sorting algorithms. Some, such as insertionsort, selectionsort, and bubblesort, are relatively simple but slow. Others, such as heapsort, quicksort, and mergesort, are more complicated but much faster. Still others, such as countingsort and pigeonhole sort, don't use comparisons to sort items, so they can break the O(N log N) barrier and perform amazingly fast under the right circumstances.
The following sections categorize the algorithms by their run-time performance.
Read now
Unlock full access