Computer scienceAlgorithms and data structuresAlgorithmsString algorithmsSubstring search algorithms

Calculating prefix function

Calculating the prefix function

Report a typo

Suppose you are calculating the prefix function pp of a string ss. You have calculated p[5]=2p[5] = 2 and you have found that s[6]=s[3]s[6] = s[3]. What will be p[6]p[6] then?

Enter a number

Create a free account to access the full topic