News for hackers. Stuff that matters.
Re:Ask HN: What's your favorite elegant/beautiful algorithm? by jhallenworld on Wednesday October 17, 2018 @10:09AM (#18239152)
I like skip lists (technically a data structure, but with associated algorithms). I love the simplicity vs. other balanced tree algorithms. Also I'm a fan because it's a relatively recent development that shows that progress is still possible in fundamental areas.

https://en.wikipedia.org/wiki/Skip_list

Some runners up: Gosling's dynamic programming algorithm for optimizing text editor screen updates and gap buffers.

Re:Ask HN: What's your favorite elegant/beautiful algorithm? by thekdude on Wednesday October 17, 2018 @10:14AM (#18239218)
I had an assignment where I needed to implement generic Skip lists in Java, I had a great time doing it, I really enjoy them as a data structure