Ask HN: What's your favorite elegant/beautiful algorithm?
1–10 of 507 posts
Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#2Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#32. Fast Fourier transform (FFT). It's another quite brilliant algorithm used for decomposing a function into its frequency components in linearithmic time (among other things).
Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#4It's not so much that it is "beautiful", but it is a remarkably simple algorithm that a human can follow manually. The reason it is efficient is easily understood (it's easy to see how we are able to "finalize" nodes because it's obvious there is no shorter path to that node), and it takes what would otherwise be a complicated task and makes it manageable.
Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#5Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#6Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#7Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#8It's also a great insight into just how fundamental the concept of computational complexity is.
Re: Ask HN: What's your favorite elegant/beautiful algorithm?
#91. An irrefutable improvement over the state of the art.
2. A short paper which can be understood after only a dozen readings or so. I mean really understood, with visualizations and everything.
3. A practical algorithm which can be implemented by nearly anyone (even me).