document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. \\begin{algorithm}
  2. \\caption{Lloyd's Algorithm for k-Means Clustering}
  3. \\label{alg:lloyds}
  4. \\begin{algorithmic}
  5. \\REQUIRE $k \\geq 0$
  6. select k points as initial centroids
  7. \\REPEAT
  8. \\STATE {form k clusters by assigning all points to the closest centroid}
  9. \\STATE {recompute the centroid of each cluster}
  10. \\UNTIL{no recentroids}
  11. \\end{algorithmic}
  12. \\end{algorithm}
');