Suppose there are ⌈ log n ⌉ sorted lists of ⌊ n/log n ⌋ elements each. The…

PYQ GATE 2005

Suppose there are ⌈ log n ⌉ sorted lists of ⌊ n/log n ⌋ elements each. The time complexity of producing a sorted list of all these elements is

  1. A.

    O(n log log n)

  2. B.

    θ(n log n)

  3. C.

    Ω(n log n)

  4. D.

    Ω(n3/2)

Attempted by 697 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…