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

压缩空间下的最优时间上下文模式匹配

Optimal-Time Contextual Pattern Matching in Compressed Space

Centre for Biotechnology and Bioengineering(生物技术与生物工程中心);Department of Computer Science, University of Chile(智利大学计算机系)

Gonzalo Navarro, Francisco Olivares

AI总结:

针对上下文模式匹配问题,提出首个在压缩空间(对称CDAWG)中实现最优时间O(m+occ)的解决方案,并实现O(log log λ)延迟枚举结果。

摘要:

上下文模式匹配的任务是:给定模式$P[1,m]$、上下文长度$\lambda$和文本$T[1,n]$,找出$P$在$T$中出现的所有$occ$个不同上下文,其中上下文是出现位置前后的$\lambda$个符号;必须输出每个上下文出现的一个文本位置。虽然该问题可以使用$T$上$O(n)$空间的预计算数据结构在最优时间$O(m+occ)$内解决,但这种搜索在大型重复文本集合中尤为重要,因为$O(n)$空间可能过于庞大。我们提出了首个在压缩空间(即$T$的对称CDAWG(SCDAWG))中运行的最优时间解决方案。此外,我们展示了在对$P$进行$O(m)$时间预处理后,如何以$O(\log\log\lambda)$的延迟枚举$occ$个解集。为了实现这一点,我们开发了一种改进的线性空间距离敏感加权祖先数据结构。

英文摘要:

Contextual pattern matching is the task of, given a pattern $P[1,m]$, a context length $λ$, and a text $T[1,n]$, find all the $occ$ distinct contexts in which $P$ occurs in $T$, the context being the $λ$ symbols preceding and the $λ$ symbols following the occurrence; a text position where each context occurs must be output. While the problem can be solved in optimal time $O(m+occ)$ using $O(n)$-space precomputed data structures on $T$, this type of search is particularly relevant on large repetitive text collections, where $O(n)$ space can be prohibitive. We present the first optimal-time solution that runs in compressed space, namely that of a symmetric CDAWG (SCDAWG) of $T$. Further, we show how the set of $occ$ solutions can be enumerated with $O(\log\logλ)$ delay after $O(m)$-time preprocessing of $P$. To achieve this, we develop an improved linear-space distance-sensitive weighted ancestor data structure.

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

↑