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

字符串净频的在线计算

Online Computation of String Net Frequency

Peaker Guo, Seeun William Umboh, Anthony Wirth, Justin Zobel

AI总结:

本文首次在在线设置下解决字符串净频(NF)的 SINGLE-NF 和 ALL-NF 问题,通过后缀树新离线算法、NF 性质证明及 Ukkonen 在线构造技术,在常数字母表下分别达到 O(m) 和 O(n) 的最优时间。

摘要:

长度为 $m$ 的字符串在长度为 $n$ 的文本中的净频(NF)是指该字符串在文本中具有唯一左右扩展的出现次数。最近,Guo 等人 [CPM 2024] 证明了 NF 在组合上具有趣味性,并展示了如何在离线设置下高效计算两个关键问题。第一,SINGLE-NF:报告查询字符串在输入文本中的 NF。第二,ALL-NF:报告输入文本中每个具有正 NF 的字符串的一次出现及其 NF。然而,对于许多应用而言,以在线方式支持这些计算是非常可取的。我们率先在在线设置下解决了上述两个问题,并且在常见假设——字母表大小为常数——下达到了最优时间:SINGLE-NF 为 $O(m)$ 时间,ALL-NF 为 $O(n)$ 时间。我们的结果通过以下方式实现:首先使用后缀树设计新的、更简单的离线算法,证明 NF 的额外性质,并利用 Ukkonen 的在线后缀树构造算法以及 Breslauer 和 Italiano 关于隐式后缀树中隐式节点维护的结果。

英文摘要:

The net frequency (NF) of a string, of length $m$, in a text, of length $n$, is the number of occurrences of the string in the text with unique left and right extensions. Recently, Guo et al. [CPM 2024] showed that NF is combinatorially interesting and how two key questions can be computed efficiently in the offline setting. First, SINGLE-NF: reporting the NF of a query string in an input text. Second, ALL-NF: reporting an occurrence and the NF of each string of positive NF in an input text. For many applications, however, facilitating these computations in an online manner is highly desirable. We are the first to solve the above two problems in the online setting, and we do so in optimal time, assuming, as is common, a constant-size alphabet: SINGLE-NF in $O(m)$ time and ALL-NF in $O(n)$ time. Our results are achieved by first designing new and simpler offline algorithms using suffix trees, proving additional properties of NF, and exploiting Ukkonen's online suffix tree construction algorithm and results on implicit node maintenance in an implicit suffix tree by Breslauer and Italiano.

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

↑