My current favorite is SWIM. https://www.cs.cornell.edu/~asdas/research/dsn02-swim.pdf
Ask HN: What are your favorite algorithms?
1–10 of 93 posts
Post any algorithms you think are cool, inventive, or useful.
PDF links or blog posts are appreciated.
Re: Ask HN: What are your favorite algorithms?
#2Great question. Without a doubt, my favourite is the Burrows-Wheeler transform (as used by bzip2)
https://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transf...
Re: Ask HN: What are your favorite algorithms?
#3Linear Hybrid Cellular Automata:
https://pdfs.semanticscholar.org/7835/161f253ab117a3666fa8e7...
Parallelizable and efficient method for producing high quality pseudo random bits.
Designed to achieve maximal period (with 500 bit state the period of repetition is one less than 2^500).
Can be run backwards or forwards. Running it backwards undoes running it forwards and reproduces the pseudo random bits in reverse order.
Re: Ask HN: What are your favorite algorithms?
#4It looks like SWIM scales better than Raft. Are there well-known production systems that use it?
Re: Ask HN: What are your favorite algorithms?
#5Tomasulo's algorithm: https://en.wikipedia.org/wiki/Tomasulo_algorithm
A modified version of it is used in most CPU register out-of-order execution
Re: Ask HN: What are your favorite algorithms?
#6Re: Ask HN: What are your favorite algorithms?
#7I have never seen anything more elegant than Disjoint Set Datastructure
https://en.wikipedia.org/wiki/Disjoint-set_data_structure
Re: Ask HN: What are your favorite algorithms?
#8Simplex. If you can transform your NP hard optimization problem into an LP, simplex can often work like magic.
Re: Ask HN: What are your favorite algorithms?
#9Bloom filters: https://en.wikipedia.org/wiki/Bloom_filter
Re: Ask HN: What are your favorite algorithms?
#10The burrows-wheeler transform is pretty interesting https://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transf.... It's behind the bzip compression format.