English

Right-to-left online construction of parameterized position heaps

Data Structures and Algorithms 2018-08-06 v1

Abstract

Two strings of equal length are said to parameterized match if there is a bijection that maps the characters of one string to those of the other string, so that two strings become identical. The parameterized pattern matching problem is, given two strings TT and PP, to find the occurrences of substrings in TT that parameterized match PP. Diptarama et al. [Position Heaps for Parameterized Strings, CPM 2017] proposed an indexing data structure called parameterized position heaps, and gave a left-to-right online construction algorithm. In this paper, we present a right-to-left online construction algorithm for parameterized position heaps. For a text string TT of length nn over two kinds of alphabets Σ\Sigma and Π\Pi of respective size σ\sigma and π\pi, our construction algorithm runs in O(nlog(σ+π))O(n \log(\sigma + \pi)) time with O(n)O(n) space. Our right-to-left parameterized position heaps support pattern matching queries in O(mlog(σ+π)+mπ+pocc))O(m \log (\sigma + \pi) + m \pi + \mathit{pocc})) time, where mm is the length of a query pattern PP and pocc\mathit{pocc} is the number of occurrences to report. Our construction and pattern matching algorithms are as efficient as Diptarama et al.'s algorithms.

Keywords

Cite

@article{arxiv.1808.01071,
  title  = {Right-to-left online construction of parameterized position heaps},
  author = {Noriki Fujisato and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
  journal= {arXiv preprint arXiv:1808.01071},
  year   = {2018}
}
R2 v1 2026-06-23T03:23:28.236Z