Shamir's Secret Sharing. I don't have a smart description, it's just wonderful. Split the secret in N parts, require N - K parts to reconstruct it. Use cases are numerous.
SSS is one of my favorites because it takes concepts I learned from basic algebra, transliterates then to finite fields, and turns them directly into industrial-grade crypto.
Dijkstra's Shunting algorithm, also called the Twin Stack algorithm, is a work of art in its simplicity and function. It can convert an algebraic express to a RPN sequence that can be executed on a stack machine. I like to use it to teach students the value of using stacks.
Comments (491) 209 threads
Earlier commentsIt generates perfect mazes of arbitrary size M*N, using only O(max(M, N)) memory.
[0] http://www.drdobbs.com/jvm/an-algorithm-for-compressing-spac...
All comments shown.
Couldn't load more comments. Check your connection and try again.