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 you sort cards in your hand.
Define time complexity.
Consider how the time increases with more data.
What is the time complexity of Insertion Sort?
Consider how many comparisons you might have to make with reversed data.
True or False: Insertion Sort can be faster than selection sort on nearly sorted lists.
Think about how well it handles existing order.
Implement Insertion Sort in a programming language of your choice, both iteratively and recursively. What differences do you observe in performance?
Focus on measuring the execution time with varying list sizes.
Create an input case for Insertion Sort that highlights its worst-case time complexity. Explain your reasoning.
Think about how selections each time for the next element will be maximum.
6 more questions in this section. Enroll free to practise them all.
Enroll free