English

Efficient Parameterized Pattern Matching in Sublinear Space

Data Structures and Algorithms 2023-06-21 v1

Abstract

The parameterized matching problem is a variant of string matching, which is to search for all parameterized occurrences of a pattern PP in a text TT. In considering matching algorithms, the combinatorial natures of strings, especially periodicity, play an important role. In this paper, we analyze the properties of periods of parameterized strings and propose a generalization of Galil and Seiferas's exact matching algorithm (1980) into parameterized matching, which runs in O(πT+P)O(\pi|T|+|P|) time and O(logP+Π)O(\log{|P|}+|{\rm\Pi}|) space in addition to the input space, where Π{\rm\Pi} is the parameter alphabet and π\pi is the number of parameter characters appearing in PP plus one.

Keywords

Cite

@article{arxiv.2306.10714,
  title  = {Efficient Parameterized Pattern Matching in Sublinear Space},
  author = {Haruki Ideguchi and Diptarama Hendrian and Ryo Yoshinaka and Ayumi Shinohara},
  journal= {arXiv preprint arXiv:2306.10714},
  year   = {2023}
}
R2 v1 2026-06-28T11:08:27.759Z