Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does insertion sort do?
Think about how cards are sorted.
What is the worst-case time complexity of insertion sort?
Consider the scenario of sorting a completely reversed list.
What is the main process of insertion sort?
Remember how we sort cards.
True or False: Insertion sort is more effective on large, unsorted datasets than on nearly sorted data.
Think about the efficiencies we discussed.
Given an array of integers [5, 2, 9, 1, 5, 6], illustrate each step of the insertion sort process.
Visualize the process as inserting numbers one by one into an already sorted list.
Analyze the effectiveness of using insertion sort on a dataset of 1,000 elements that is nearly sorted. What is the expected time complexity?
Think about the efficiency of comparisons in nearly sorted arrays.
4 more questions in this section. Enroll free to practise them all.
Enroll free