Given n points in the plane and an integer k, the problem of selecting that pair of points that determines the line with the kth smallest or largest slope is considered. In the restricted case, where k is $O(n)$, line sweeping gives an optimal, O(nlog n)-time algorithm. For general k the parametric search technique of Megiddo is used to describe an O(n(log n)² )-time algorithm. This is modified to produce a new, optimal O(nlog n)-time selection algorithm by incorporating an approximation idea.
No takes yet. Share an insight, caveat, or question.
Cole et al. (1989) studied this question.
Synapse has enriched 2 closely related papers on similar clinical questions. Consider them for comparative context: