From the course: Programming Foundations: Algorithms
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Overview of sorting - Python Tutorial
From the course: Programming Foundations: Algorithms
Overview of sorting
- [Instructor] One of the most common problems that arise in writing modern programs is the need to sort sets of data, and there are a variety of reasons why you'd want to do this. In some cases, the data will be presented to the user, and to help them make sense of the information it needs to be sorted a certain way. So, for example, someone using a real estate app might want to sort properties by price level. In other cases, the data needs to be sorted so that the app itself can work on the information more efficiently. So using that same real estate app scenario, the user might not decide to view houses sorted by price, but if they do specify minimum and maximum price boundaries, then the app would internally sort the data in order to limit the amount of additional information it would need to retrieve, for a given set of properties. In this chapter, we're going to learn about a few of the different algorithms for…