...
GATE 2015 [Set-3]
April 3, 2025
GATE 2015 [Set-2]
April 4, 2025
GATE 2015 [Set-3]
April 3, 2025
GATE 2015 [Set-2]
April 4, 2025

GATE 2015 [Set-2]

Question 11

An unordered list contains n distinct elements. The number of comparisons to find an element in this list that is neither maximum nor minimum is

A
Θ(nlog n)
B
Θ(n)
C
Θ(log n)
D
Θ(1)
Question 11 Explanation: 
Consider first three element of the list, atleast one of them will be neither minimum nor maximum.
∴ Θ(1)
Correct Answer: D
Question 11 Explanation: 
Consider first three element of the list, atleast one of them will be neither minimum nor maximum.
∴ Θ(1)

Leave a Reply

Your email address will not be published. Required fields are marked *