News for hackers. Stuff that matters.
Re:Ask HN: What is your favorite algorithm and why? by dvt on Monday October 21, 2019 @02:03PM (#21315285)
My favorite data structure is the splay tree[1] and one of my favorite algorithms is the Boyer-Moore majority vote algorithm[2].

[1] https://en.wikipedia.org/wiki/Splay_tree

[2] http://www.cs.rug.nl/~wim/pub/whh348.pdf

Re:Ask HN: What is your favorite algorithm and why? by 22century on Monday October 21, 2019 @02:13PM (#21315395)
I like Euclidean Algorithm. Solves metric crapton of problems in elementary number theory and basic abstract algebra.
Re:Ask HN: What is your favorite algorithm and why? by aidaoftheheart on Monday October 21, 2019 @02:29PM (#21315572)
Djikstra shortest path. it's a beautiful design.
Re:Ask HN: What is your favorite algorithm and why? by arberavdullahu on Tuesday October 22, 2019 @06:01AM (#21321899)
BFS and DFS. Simple and quite useful!