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...
[ Parent
| on HN ]