Merge Sort
1. What will be the space complexity of the algorithm?
2. Consider the following array:
A = [8, 7, -2, 4, 1, 100, 0, -1]
Which of the following subarray pairs are merged with each other during one of the merge operations (assume ascending order sort)?
A = [8, 7, -2, 4, 1, 100, 0, -1]
Which of the following subarray pairs are merged with each other during one of the merge operations (assume ascending order sort)?
3. Why is the complexity of the algorithm N log (N)?
4. Consider the following array:
A = [0, -1, 100, 110, 1, 5]
Which of the following represents the steps in sorting the above array?
A = [0, -1, 100, 110, 1, 5]
Which of the following represents the steps in sorting the above array?