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

在次线性时间内计算字符串覆盖

Computing String Covers in Sublinear Time

Jakub Radoszewski, Wiktor Zuba

AI总结:

本文研究了字符串覆盖的计算问题,证明了在字RAM模型中可在最优 $O(n/\log_σn)$ 时间内计算出所有覆盖表示及最短覆盖,设计了支持 $O(1)$ 查询最短覆盖数组的紧凑数据结构,并给出了 PILLAR 模型下的下界证明。

摘要:

设 $T$ 为长度为 $n$ 的字符串,其字母表大小为 $σ$。在字 RAM 模型中,$T$ 可用 $O(n /\log_σn)$ 空间表示。我们证明,$T$ 的所有覆盖的表示可以在最优的 $O(n/\log_σn)$ 时间内计算出;特别地,最短覆盖也能在此时间内算出。我们还设计了一个 $O(n(\logσ+ \log \log n)/\log n)$ 大小的数据结构,能在 $O(1)$ 时间内计算出 $T$ 的所谓(最短)覆盖数组的任意元素,即 $T$ 任意给定前缀的最短覆盖长度。作为副产品,我们描述了 Fibonacci 字符串覆盖数组的结构。在负面结果方面,我们证明了在 Charalampopoulos、Kociumaka 和 Wellnitz(FOCS 2020)的 PILLAR 模型中,长度为 $n$ 的字符串的最短覆盖无法使用 $o(n/\log n)$ 次操作计算出来。

英文摘要:

Let $T$ be a string of length $n$ over an integer alphabet of size $σ$. In the word RAM model, $T$ can be represented in $O(n /\log_σn)$ space. We show that a representation of all covers of $T$ can be computed in the optimal $O(n/\log_σn)$ time; in particular, the shortest cover can be computed within this time. We also design an $O(n(\logσ+ \log \log n)/\log n)$-sized data structure that computes in $O(1)$ time any element of the so-called (shortest) cover array of $T$, that is, the length of the shortest cover of any given prefix of $T$. As a by-product, we describe the structure of cover arrays of Fibonacci strings. On the negative side, we show that the shortest cover of a length-$n$ string cannot be computed using $o(n/\log n)$ operations in the PILLAR model of Charalampopoulos, Kociumaka, and Wellnitz (FOCS 2020).

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

↑