Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is 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.


It seems like the Rabin-Karp algorithm is inferior to KMP.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: