News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite elegant/beautiful algorithm? by failsafe on Wednesday October 17, 2018 @04:55AM (#18237334)
The interesting part is solving the "closest pair problem" which is a part of the clustering algorithm. Hurts my head just thinking about it, god knows how someone came up with a solution like this. https://www.geeksforgeeks.org/closest-pair-of-points-using-d...
Re:Ask HN: What's your favorite elegant/beautiful algorithm? by n4r9 on Wednesday October 17, 2018 @05:03AM (#18237366)
The closest-pair algorithm is something you might use in single-linkage clustering, not K-means clustering:

https://en.wikipedia.org/wiki/Single-linkage_clustering