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 found that p[8]=3p[8]=3 and you want to calculate p[9]p[9]. If s[9]≠s[4]s[9] \neq s[4], then what will be the border of s[1,9]s[1,9]?

Select one option from the list

Create a free account to access the full topic