3 ms·Efficient way to search a stream for a string7 points by wslh 10y agoerubin 10y agoIs there a reason why nobody suggested the Rabin-Karp algorithm (modular hashing)? It is also no-backup and conveniently allows searching for multiple strings in the stream.wslh 10y agoIt seems like the Rabin-Karp algorithm is inferior to KMP.