Apex › Storage & databases

Rabin-Karp

String search by hashing, with a rolling hash that updates in O(1) as the window slides. Step the window and watch hash hits trigger a character check — the same rolling hash behind rsync and dedup.

More in Storage & databases