Lurker News

Comments (491) 209 threads

Earlier comments
0x8BADF00D#
Sieve of Eratosthenes, an ancient algorithm that stood the test of time.
another-cuppa#
B-trees are really beautiful. I also like the Aho-Corasick algorithm as used by fgrep. I actually started to reinvent this algorithm myself before finding out it was already done. It's essentially a way to add links to a trie such that you can find all occurrences of multiple substrings within a larger string with one pass through the larger string.
edoo#
A properly implemented queue that utilizes the CPU compare and swap instructions on the pointers for nearly overhead-free, mutex free concurrency.

Load more comments