A list of \(n\) strings, each of length \(n\), is sorted into lexicographic…
PYQ GATE 2012Modified — slightly modified from the official paper; see the solution
A list of strings, each of length , is sorted into lexicographic order using the merge-sort algorithm. The worst case running time of this computation is
Use standard merge sort with each string comparison scanning characters afresh from the beginning, at unit cost per character comparison. Choose the tightest listed worst-case bound.
- A.
- B.
- C.
- D.
Attempted by 847 students.
Sign up free to check your answer
Sign up freeLoading lesson…

