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?