© Elshad Karimov 2020
E. KarimovData Structures and Algorithms in Swifthttps://doi.org/10.1007/978-1-4842-5769-2_14

14. Sorting Algorithms

Elshad Karimov1 
(1)
New York, New York, USA
 

Until now we have covered different data structures and their performance. In this chapter, we will start learning about algorithms, which are the essential ways of processing data. The main functionality of algorithms is taking data as an input, processing it, and returning it as output.

In this chapter we will look at sorting algorithms which sort the data. The goal with sorting is to move from disarray to order. A sorting algorithm is made up of a series of instructions that takes lists as input, performs an operation on them, and outputs a sorted list. There are different ...

Get Data Structures and Algorithms in Swift: Implement Stacks, Queues, Dictionaries, and Lists in Your Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.