Back to front pageView on Hacker News (opens in a new tab)Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years agoComments (491) 209 threadsShow all commentsShowing thread 120 of 209faragon8 years ago#The Rabin-Karp string search algorithm.Wikipedia entry:https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithmImplementation example (2 GB/s scan on modern 3GHz CPU):https://github.com/faragon/libsrt/blob/master/src/saux/ssear...
Ask HN: What's your favorite elegant/beautiful algorithm?733 pointsby algobuddy (on Hacker News)8 years ago
faragon8 years ago#The Rabin-Karp string search algorithm.Wikipedia entry:https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithmImplementation example (2 GB/s scan on modern 3GHz CPU):https://github.com/faragon/libsrt/blob/master/src/saux/ssear...
Comments (491) 209 threads
Show all comments
Showing thread 120 of 209
Wikipedia entry:
https://en.wikipedia.org/wiki/Rabin%E2%80%93Karp_algorithm
Implementation example (2 GB/s scan on modern 3GHz CPU):
https://github.com/faragon/libsrt/blob/master/src/saux/ssear...