What is the most efficient algorithm to find a straight line that goes through most points?
There is likely no solution to this problem that is significantly better than O(n^2) in a standard model of computation. The problem of finding three collinear points reduces to the problem of finding the line that goes through the most points, and finding three collinear points is 3SUM-hard, meaning that solving it in less than … Read more