给定一个长度为$n$的字符串$S$,经典的字符串索引问题是将$S$预处理成一个紧凑的数据结构,以支持高效的后续模式查询。在\emph{deterministic}变体中,目标是在没有任何随机化的情况下(在预处理时或查询时)解决字符串索引问题。在\emph{packed}变体中,字符串在一个单词中存储有多个字符,这使我们有机会同时读取多个字符。我们的主要结果是一个新的字符串索引的确定性\emph{and}包装设置。给定一个包装字符串$S$的长度$n$在一个字母表$σ$,我们展示了如何预处理$S$在$O(n)$(确定性)的时间和空间$O(n)$,这样,给定一个包装模式字符串的长度$m$,我们可以支持查询(确定性)的时间$O\left(m/α+ \log m + \log \log σ\right), $其中$α= w / \log σ$是字符数包装在一个字的大小$w = Θ(\log n)$。我们的查询时间总是至少与以前的最佳已知边界一样好,并且每当几个字符被打包在一个单词中时,即,$\log σ\ll w$,查询时间更快。
英文摘要:
Given a string $S$ of length $n$, the classic string indexing problem is to preprocess $S$ into a compact data structure that supports efficient subsequent pattern queries. In the \emph{deterministic} variant the goal is to solve the string indexing problem without any randomization (at preprocessing time or query time). In the \emph{packed} variant the strings are stored with several character in a single word, giving us the opportunity to read multiple characters simultaneously. Our main result is a new string index in the deterministic \emph{and} packed setting. Given a packed string $S$ of length $n$ over an alphabet $σ$, we show how to preprocess $S$ in $O(n)$ (deterministic) time and space $O(n)$ such that given a packed pattern string of length $m$ we can support queries in (deterministic) time $O\left(m/α+ \log m + \log \log σ\right), $ where $α= w / \log σ$ is the number of characters packed in a word of size $w = Θ(\log n)$. Our query time is always at least as good as the previous best known bounds and whenever several characters are packed in a word, i.e., $\log σ\ll w$, the query times are faster.
Algorithms and Complexity on Indexing Founder Graphs
研究了标号图中字符串的匹配问题。以前的研究表明,除非正交向量假设(OVH)是假的,否则无法在强次二次时间内解决这个问题,也无法在多项式时间内索引图以有效地回答查询(Equi et al. ICALP 2019,SOFSEM 2021)。这些条件下界甚至覆盖具有二进制字母表的确定性图,但是自然也存在易于索引的图类:例如Wheeler图(Gagie et al. Theor.比较科学2017)覆盖图承认基于Burrows-Wheeler变换的索引方案。然而,识别一个图是否是Wheeler图是NP完全的(Gibney,Escherachan,ESA 2019)。我们提出了一种方法来缓解惠勒图的建设瓶颈。而不是从一个任意的图开始,我们研究从多序列比对(MSA)引起的图形。弹性退化弦(Bernadini et al. SPIRE 2017,ICALP 2019)可以被看作是这样的图,我们在这里介绍它们的推广:弹性创始人图。我们首先证明,即使是这样的诱导图是很难索引下OVH。然后,我们介绍了两个子类,重复自由和半重复自由图,这是很容易索引。我们给出了一个线性时间算法来构造一个无重复的非弹性创始人图从一个无间隙的MSA,和(参数化)近线性时间算法来构造半无重复(无重复,分别)弹性创始人图从一般MSA。最后,我们证明了无重复弹性创始人图承认减少惠勒图在多项式时间。