August 2017
Intermediate to advanced
222 pages
5h 3m
English
We’ve seen that understanding recursion unlocks all sorts of new algorithms, such as searching through a filesystem. In this chapter, we’re going to learn that recursion is also the key to algorithms that can make our code run much, much faster.
In previous chapters, we’ve encountered a number of sorting algorithms, including Bubble Sort, Selection Sort, and Insertion Sort. In real life, however, none of these methods are actually used to sort arrays. Most computer languages have built-in sorting functions for arrays that save us the time and effort from implementing our own. And in many of these languages, the sorting algorithm that is employed under the hood is Quicksort.
The reason we’re going to ...