Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is Selection Sort?
Think about how you arrange numbers in order.
What is the time complexity of Selection Sort?
Consider how many times you loop through the list.
What is the main advantage of sorting an array?
Think about how you find items in a sorted list versus an unsorted one.
Is Selection Sort an efficient algorithm for large datasets?
Consider how many iterations are involved in Selection Sort.
Implement Selection Sort in Python and test it with an unsorted array of random numbers.
Remember to iterate through the list multiple times, finding and swapping the minimum.
Given a list of integers sorted in descending order, apply Selection Sort and note the performance. What do you observe?
Consider how looking for the minimum is different in a list that's already sorted.
5 more questions in this section. Enroll free to practise them all.
Enroll free