Gate CS-2012 Question Paper With Solutions

Q. 39 A list of n strings, each of length n, is sorted into lexicographic order using the
merge-sort algorithm. The worst case running time of this computation is

(A) O(n log n)

(B) O(n2 log n)

(C) O(n2 + log n)

(D) O(n2)

Answer: (B)

Explanation:

Gate CS-2012 Question Paper With Solutions

Learn More:   Gate EC-2009 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here