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 merge sort do?
Think about how it handles subarrays.
Can merge sort handle arrays of odd size?
What happens when you divide an odd number?
What is the time complexity of merge sort?
Consider how the array is divided and merged.
True or False: Merge sort can sort an array of any size effectively.
What happens when sizes are not examples of powers of two?
Given an array of numbers, implement the merge sort algorithm in code. Analyze the time taken for sorting an array of large size.
Pay attention to the merging step and ensure the recursion captures both halves correctly.
Compare and analyze the performance of merge sort and insertion sort on an array of 1000 random integers. Present your findings.
Consider the arrangement of elements as they are sorted.
5 more questions in this section. Enroll free to practise them all.
Enroll free