Algorithms

What's your favorite algorithm, and why?

Attached: 1548105027315.jpg (900x1200, 295K)

the algorithm to determine whether or not op is a faggot
return true

funnelsort
union-find
pake authentication
push-relabel maximum flow
pratt's expression parsing
quickperm
runge–kutta

Sleep sort

Probably mergesort. For some reason I like it better than quicksort. But both are easy enough to remember and implement should the need arise.

Also, Dijkstra. Basically just dynamic programming. Very elegant.

Explosion sort

huffman coding, it's so elegant

quicksort because im autistic and it's easy to implement

Recursion is the gayest shit ever I hate programmers who jerk themselves off over it.

Bitonic sort blew my mind
Concurrent write sort is just the right amount of stupid, being O(1)

But I don't know enough algorithms to really be able to pick a favourite one. Distributed ones are always nice (distributed leader election, distributed spanning tree construction, etc.) but there's probably a ton of stuff I don't know about.
Like , what is that