Let P1,P2,…,Pn be n points in the xy-plane such that no three of them are…

PYQ GATE 2007

Let P1,P2,…,Pn be n points in the xy-plane such that no three of them are collinear. For every pair of points Pi and Pj, let Lij be the line passing through them. Let Lab be the line with the steepest gradient among all n(n−1)/2 lines.

The time complexity of the best algorithm for finding Pa and Pb is

  1. A.

    Θ(n)

  2. B.

    Θ(n log n)

  3. C.

    Θ(n log² n)

  4. D.

    Θ(n²)

Attempted by 206 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…