GATEverse
← GATE CSE 2002

Q2.10

MCQ2 marks, −0.5

Consider the following algorithm for searching for a given number xx in an unsorted array A[1..n]A[1..n] having nn distinct values: Assuming that xx is present in AA, what is the expected number of comparisons made by the algorithm before it terminates? nn n−1n-1 2n2n n2\frac{n}{2}

Sign in to save attempts.

Loading…