In the previous chapters, we looked at searching, and we explored linear search and binary search. In this chapter, we will look at another set of important algorithms—sorting algorithms. Sorting is a common task for many algorithms as many applications may need to search through text or images in various forms. We will cover all the commonly encountered sorting algorithms in this chapter.
Sorting
The sorting algorithms are important. This is because many computing algorithms require that the items they are working on have some type of sorting in place. ...