Merge Sort
1. What is the space complexity of the merge sort algorithm?
2. Consider the array: A = [8, 7, -2, 4, 1, 100, 0, -1]. Which of the following pairs of subarrays are merged together at some point during merge sort (assume ascending order)?
3. Why is the time complexity of merge sort O(N log N)?
4. Consider the array: A = [0, -1, 100, 110, 1, 5]. Which of the following shows the correct steps in sorting this array using merge sort?
5. When merging two sorted subarrays in ascending order, which element should normally be selected next?
6. If an array contains elements, how many splitting levels are required to reach subarrays containing one element?
7. Which recurrence most accurately represents the time complexity of merge sort for elements?
8. Which property can make a standard merge sort implementation stable?
9. Why does merge sort have approximately levels of division for elements?