Raft Consensus Algorithm¹ - This algorithm plays an important part of many modern database systems. It has a wide variety of implementations in many languages which makes it easy to study and solid academic backing. As well as a cool visual representations of how the consensus actually works as seen in the link:
Cantor's proof [1] of impossibility of a surjection into the powerset.
Although, calling this an algorithm may offend applied mathematicians. I would call it an algorithm since explicitly defined sets are constructed to show the contradiction. [1] https://en.wikipedia.org/wiki/Cantor's_theorem#Proof
Interpolation search [1], which allows you to search a sorted array in O(log(log(n))) time, assuming its elements are uniformly distributed (for instance, you are searching a sorted array of hashes.)
icgrep (http://www.icgrep.com) has a clever approach to searching text for arbitrary sets of characters in a parallel manner. If 128-bit registers are available and we're processing 8-bit characters (for example), the next 128 characters from a file are first loaded into 8 SIMD registers. Then a bitwise transposition is performed so that r0 contains bit 0 of each input character, r1 contains bit 1, etc., up to r7. Then with a series of logic operations across those registers (imagine the sum-of-product result of a k-map of characters of interest), searches for any arbitrary subset of characters can be performed in parallel, leaving 1s in the corresponding position of the result register for each match and 0s elsewhere. icgrep supports full regex patterns and Unicode (using 21 registers instead of 8), but what interests me are the elegant transpose and logic steps.
Comments (491) 209 threads
Earlier comments¹ https://raft.github.io
Although, calling this an algorithm may offend applied mathematicians.
I would call it an algorithm since explicitly defined sets are constructed to show the contradiction.
[1] https://en.wikipedia.org/wiki/Cantor's_theorem#Proof
[1] https://en.wikipedia.org/wiki/Interpolation_search
All comments shown.
Couldn't load more comments. Check your connection and try again.