GATE CS 2019 · Asymptotic Analysis & Recurrences

MCQ · 2 marks · Problem PROG-DIVC-0087

There are n unsorted arrays: \(A_1,A_2,...,A_n\). Assume that n is odd. Each of \(A_1,A_2,...,A_n\) contains n distinct elements. There are no common elements between any two arrays. The worst-case Asymptotic Notation of computing the median of the medians of \(A_1,A_2,...,A_n\) is .
  1. A
    \(O(n)\)
  2. B
    \(O(n \log n)\)
  3. C
    \(O(n^2)\)
  4. D
    \(\Omega(n^2 \log n)\)

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/302811/gate2019-cs-37

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com