文摘
A palindrome is a string that reads the same forward and backward. For a string , let be the set of all maximal palindromes of , where each maximal palindrome in is encoded by a pair of its center and its radius . Given a text of length and a pattern of length , the palindrome pattern matching problem is to compute all positions of such that . We present linear-time algorithms to solve this problem.