arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1612.01748cs.DS
收藏

压缩字符串的确定性索引

Deterministic Indexing for Packed Strings

Philip Bille, Inge Li Gørtz, Frederik Rye Skjoldjensen

摘要:

给定一个长度为$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.

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

↑