arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.01071cs.DS
收藏

参数化位置堆的从右到左在线构造

Right-to-left online construction of parameterized position heaps

Noriki Fujisato, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda

摘要:

如果存在一个双射将一个字符串的字符映射到另一个字符串的字符,使得两个字符串变得相同,则称两个长度相等的字符串参数化匹配。参数化模式匹配问题是,给定两个字符串$T$和$P$,找出$T$中参数化匹配$P$的子串的出现次数. Diptarama等人[Position Heaps for Parameterized Strings,CPM 2017]提出了一种称为参数化位置堆的索引数据结构,并给出了从左到右的在线构造算法。本文提出了一种从右到左的参数化位置堆的在线构造算法。对于长度为$n$的文本串$T$,在两种分别大小为$σ$和$π$的字母表$Σ$和$Π$上,我们的构造算法在$O(n \log(σ+ π))$时间和$O(n)$空间中运行。我们的从右到左的参数化位置堆支持$O(m \log (σ+ π) + m π+ \mathit{pocc}))$时间的模式匹配查询,其中$m$是查询模式$P$的长度,$\mathit{pocc}$是要报告的出现次数。我们的建设和模式匹配算法是有效的Diptarama等人。的算法。

英文摘要:

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 $T$ and $P$, to find the occurrences of substrings in $T$ that parameterized match $P$. 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 $T$ of length $n$ over two kinds of alphabets $Σ$ and $Π$ of respective size $σ$ and $π$, our construction algorithm runs in $O(n \log(σ+ π))$ time with $O(n)$ space. Our right-to-left parameterized position heaps support pattern matching queries in $O(m \log (σ+ π) + m π+ \mathit{pocc}))$ time, where $m$ is the length of a query pattern $P$ and $\mathit{pocc}$ is the number of occurrences to report. Our construction and pattern matching algorithms are as efficient as Diptarama et al.'s algorithms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑