What is the most efficient algorithm to find a straight line that goes through most points?

前端 未结 7 1890
渐次进展
渐次进展 2020-11-29 18:30

The problem:

N points are given on a 2-dimensional plane. What is the maximum number of points on the same straight line?

The problem has O(N2<

7条回答
  •  星月不相逢
    2020-11-29 18:34

    The Hough Transform can give you an approximate solution. It is approximate because the binning technique has a limited resolution in parameter space, so the maximum bin will give you some limited range of possible lines.

提交回复
热议问题