The merge sort algorithm involves the following steps i-01837
This subjective question is related to the book/course vu mgt101 Financial Accounting. It can also be found in vu mgt101 Mid Term Solved Past Paper No. 3.
Question 1: The merge sort algorithm involves the following steps.
Which is the correct order of instructions in merge sort algorithm?
- (i) Recursively sort the 1st and 2nd halves separately
- (ii) Merge the two-sorted halves into a sorted group.
- (iii) If the number of items to sort is 0 or 1, return.
Which is the correct order of instructions in merge sort algorithm?
Answer:
- (i),(ii),(iii)
- (ii),(iii),(i)
- (iii),(ii),(i)
- (iii),(i),(ii)