Computer scienceAlgorithms and Data StructuresAlgorithmsString algorithmsSubstring search algorithms

Rolling hash

Rolling hash

Report a typo

Calculate the polynomial hash value (a=3a=3, m=13m=13) for the suffix of length 44 of s=AACCDBs=AACCDB. Then calculate the same hash value for the central substring of ss of length 44, i.e. for the substring ACCDACCD.

Enter two numbers separated by space.

Tip: Use the rolling hash property of polynomial hashing.

Enter a short text
___

Create a free account to access the full topic