The Sieve of Eratosthenes is one of my favorites, and surprisingly has yet to be mentioned.
I imagine I would spend many days researching prime numbers if I hadn't read "The Mystery of the Aleph" in time. I'm keen to keep what sanity I have left.
Priority encoder based on bit-twiddling: A&(-A) isolates least significant set bit of A. Allows you to make fast round-robin arbiters in FPGAs by taking advantage of the dedicated carry chain.
Also the compress and extract algorithms from Hacker's Delight.
Comments (491) 209 threads
Earlier commentsI imagine I would spend many days researching prime numbers if I hadn't read "The Mystery of the Aleph" in time. I'm keen to keep what sanity I have left.
Also the compress and extract algorithms from Hacker's Delight.
It is used in DVB-T combined with Reed-Solomon code for example.
https://en.wikipedia.org/wiki/Viterbi_algorithm
All comments shown.
Couldn't load more comments. Check your connection and try again.