Optimal Slope Selection

Richard Cole, Jeffrey S. Salowe, William L. Steiger, Endre Szemerédi

Abstract

Given n points in the plane and an integer k, we consider the problem of selecting that pair which determines the line with the kth smallest or largest slope. In the restricted case where k is O(n), line sweeping gives an optimal, Θ(nlog n) algorithm. For general k we use the parametric search technique of Megiddo to describe an O(n (log n)2) algorithm. This is modified to produce a new, optimal Θ(nlog n) selection algorithm by incorporating an approximation idea.
BibTeX
@inproceedings{cole1988optimal,
  author = {Richard Cole and Jeffrey S. Salowe and William L. Steiger and Endre Szemerédi},
  title = {{Optimal Slope Selection}},
  booktitle = {ICALP},
  year = {1988},
  doi = {10.1007/3-540-19488-6\_112},
}

Loading related content...

Figure