title: How to find straight lines from an array of unsorted x/y cordinates
body: <p>Is there an efficient algorithm to find straight lines from an unsorted collection of x/y coordinates?
  It would be ideal if:</p>
  
  <ul>
  <li>a line is only recognized if at least n (more than two) points are aligned.</li>
  <li>It allows a tolerance, so for example the following three coordinates would be considered a (horizontal) line: 10/100, 20/99, 30/100.</li>
  </ul>
  
  <p>Is there some kind of standard approach to solve this? Maybe any (java) libraries? How would you solve it?</p>