Question 10 – ISRO-2018
February 13, 2024
Question 14 – ISRO-2018
February 13, 2024
Question 10 – ISRO-2018
February 13, 2024
Question 14 – ISRO-2018
February 13, 2024

Question 11 – ISRO-2018

Given two sorted list of size m and n respectively. The number of comparisons needed the worst case by the merge sort algorithm will be

Correct Answer: D

Question 10 Explanation: 
Here the maximum number of comparisons is m+n-1.
For example: Take 2 sub-arrays of size 3 such as 1,3,5 and another subarray 2,4,6. Then in this case number of comparisons is 5 which is m+n-1 can be taken as O(m+n).
A
m*n
B
maximum of m and n
C
minimum of m and n
D
m+n–1
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!