突破构建参数化模式匹配紧凑索引的障碍
Breaking a Barrier in Constructing Compact Indexes for Parameterized Pattern Matching
AI总结:
本文针对参数化模式匹配紧凑索引构造问题,将 pBWT 在线构造时间复杂度从依赖参数字母表大小的乘积因子改进为对数因子,并首次实现紧凑空间下支持向后搜索的在线构造。
摘要:
参数化字符串(p-string)是定义在字母表 $(Σ_{s} \cup Σ_{p})$ 上的字符串,其中 $Σ_{s}$ 和 $Σ_{p}$ 分别是静态符号(s-symbols)和参数符号(p-symbols)的不相交字母表。两个 p-string $x$ 和 $y$ 被称为参数化匹配(p-match),当且仅当可以通过对 $x$ 中所有 p-symbols 的出现施加 $Σ_{p}$ 上的一个双射将 $x$ 变换为 $y$。p-matching 的索引问题是对长度为 $n$ 的 p-string $T$ 进行预处理,以便能够高效地找出 $T$ 中与给定模式 p-match 的子串的出现位置。Ganguly 等人 [SODA 2017] 扩展了基于 Burrows-Wheeler Transform (BWT) 的精确字符串模式匹配索引,提出了第一个用于 p-matching 的紧凑索引(命名为 pBWT),并提出了一个开放问题:如何在紧凑空间中构造它,即在 $O(n \lg |Σ_{s} \cup Σ_{p}|)$ 比特的空间内构造。Hashimoto 等人 [SPIRE 2022] 部分解决了这一问题,他们展示了如何在从右向左读取 $T$ 的符号的同时,以在线方式在 $O(n \frac{|Σ_{p}| \lg n}{\lg \lg n})$ 时间内构造 $T$ 的 pBWT 的某些组成部分。在本文中,我们将时间复杂度改进为 $O(n \frac{\lg |Σ_{p}| \lg n}{\lg \lg n})$。我们指出,从复杂度中移除 $|Σ_{p}|$ 这个乘法因子具有重大意义,因为在相关数据结构(如参数化后缀数组)的构造中,即使是在离线设置下,十多年来也未能实现这一点。我们还表明,我们的数据结构能够在在线构造的任何阶段支持向后搜索——这是基于 BWT 的索引的核心过程,从而使其成为第一个能够在紧凑空间甚至以在线方式构造的 p-matching 紧凑索引。
英文摘要:
A parameterized string (p-string) is a string over an alphabet $(Σ_{s} \cup Σ_{p})$, where $Σ_{s}$ and $Σ_{p}$ are disjoint alphabets for static symbols (s-symbols) and for parameter symbols (p-symbols), respectively. Two p-strings $x$ and $y$ are said to parameterized match (p-match) if and only if $x$ can be transformed into $y$ by applying a bijection on $Σ_{p}$ to every occurrence of p-symbols in $x$. The indexing problem for p-matching is to preprocess a p-string $T$ of length $n$ so that we can efficiently find the occurrences of substrings of $T$ that p-match with a given pattern. Extending the Burrows-Wheeler Transform (BWT) based index for exact string pattern matching, Ganguly et al. [SODA 2017] proposed the first compact index (named pBWT) for p-matching, and posed an open problem on how to construct it in compact space, i.e., in $O(n \lg |Σ_{s} \cup Σ_{p}|)$ bits of space. Hashimoto et al. [SPIRE 2022] partially solved this problem by showing how to construct some components of pBWTs for $T$ in $O(n \frac{|Σ_{p}| \lg n}{\lg \lg n})$ time in an online manner while reading the symbols of $T$ from right to left. In this paper, we improve the time complexity to $O(n \frac{\lg |Σ_{p}| \lg n}{\lg \lg n})$. We remark that removing the multiplicative factor of $|Σ_{p}|$ from the complexity is of great interest because it has not been achieved for over a decade in the construction of related data structures like parameterized suffix arrays even in the offline setting. We also show that our data structure can support backward search, a core procedure of BWT-based indexes, at any stage of the online construction, making it the first compact index for p-matching that can be constructed in compact space and even in an online manner.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。