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

常时线性空间中的内部最短缺词搜索

Internal Shortest Absent Word Queries in Constant Time and Linear Space

Golnaz Badkobeh, Panagiotis Charalampopoulos, Dmitry Kosolobov, Solon P. Pissis

摘要:

给定一个长度为$n$的字符串$T$,在一个大小为$σ$的字母表$Σ\subset \{1,2,\ldots,n^{O(1)}\}$上,我们要对$T$进行预处理,以便给定一个范围$[i,j]$,我们可以返回一个在$Σ$上的最短字符串的表示,该表示在$T$的片段$T[i]\cdots T[j]$中不存在。我们提出了一个$O(n)$空间的数据结构,回答这样的查询在恒定的时间,并可以在$O(n\log_σn)$的时间。

英文摘要:

Given a string $T$ of length $n$ over an alphabet $Σ\subset \{1,2,\ldots,n^{O(1)}\}$ of size $σ$, we are to preprocess $T$ so that given a range $[i,j]$, we can return a representation of a shortest string over $Σ$ that is absent in the fragment $T[i]\cdots T[j]$ of $T$. We present an $O(n)$-space data structure that answers such queries in constant time and can be constructed in $O(n\log_σn)$ time.

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

↑