English

The Parameterized Suffix Tray

Data Structures and Algorithms 2021-02-05 v2

Abstract

Let Σ\Sigma and Π\Pi be disjoint alphabets, respectively called the static alphabet and the parameterized alphabet. Two strings xx and yy over ΣΠ\Sigma \cup \Pi of equal length are said to parameterized match (p-match) if there exists a renaming bijection ff on Σ\Sigma and Π\Pi which is identity on Σ\Sigma and maps the characters of xx to those of yy so that the two strings become identical. The indexing version of the problem of finding p-matching occurrences of a given pattern in the text is a well-studied topic in string matching. In this paper, we present a state-of-the-art indexing structure for p-matching called the parameterized suffix tray of an input text TT, denoted by PSTray(T)\mathsf{PSTray}(T). We show that PSTray(T)\mathsf{PSTray}(T) occupies O(n)O(n) space and supports pattern matching queries in O(m+log(σ+π)+occ)O(m + \log (\sigma+\pi) + \mathit{occ}) time, where nn is the length of TT, mm is the length of a query pattern PP, π\pi is the number of distinct symbols of Π|\Pi| in TT, σ\sigma is the number of distinct symbols of Σ|\Sigma| in TT and occ\mathit{occ} is the number of p-matching occurrences of PP in TT. We also present how to build PSTray(T)\mathsf{PSTray}(T) in O(n)O(n) time from the parameterized suffix tree of TT.

Keywords

Cite

@article{arxiv.2012.10092,
  title  = {The Parameterized Suffix Tray},
  author = {Noriki Fujisato and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
  journal= {arXiv preprint arXiv:2012.10092},
  year   = {2021}
}

Comments

Accepted for CIAC 2021

R2 v1 2026-06-23T21:04:12.860Z