July 2018
Beginner
202 pages
5h 4m
English
Partitioning is the process by which we reorder our array so that elements with a value less than our pivot are moved to the left of the pivot and those with a larger value are moved to the right (see Figure 2.2). There are numerous manners in which we can do this. Here, we will describe an easy-to-understand scheme known as Lomuto Partitioning.
Take a look at this diagram:

Read now
Unlock full access