Arrow Research search
Back to TCS

TCS 2013

Palindrome pattern matching

Journal Article journal-article Computer Science ยท Theoretical Computer Science

Abstract

A palindrome is a string that reads the same forward and backward. For a string x, let Pals ( x ) be the set of all maximal palindromes of x, where each maximal palindrome in Pals ( x ) is encoded by a pair ( c, r ) of its center c and its radius r. Given a text t of length n and a pattern p of length m, the palindrome pattern matching problem is to compute all positions i of t such that Pals ( p ) = Pals ( t [ i: i + m โˆ’ 1 ] ). We present linear-time algorithms to solve this problem.

Authors

Keywords

  • Palindromes
  • Pattern matching
  • Linear time algorithms
  • Border arrays
  • Suffix trees

Context

Venue
Theoretical Computer Science
Archive span
1975-2026
Indexed papers
16261
Paper id
569478547349142369