Online Computation of String Net Frequency

Peaker Guo, Seeun William Umboh, Anthony Wirth, Justin Zobel
{"title":"Online Computation of String Net Frequency","authors":"Peaker Guo, Seeun William Umboh, Anthony Wirth, Justin Zobel","doi":"arxiv-2408.00308","DOIUrl":null,"url":null,"abstract":"The net frequency (NF) of a string, of length $m$, in a text, of length $n$,\nis the number of occurrences of the string in the text with unique left and\nright extensions. Recently, Guo et al. [CPM 2024] showed that NF is\ncombinatorially interesting and how two key questions can be computed\nefficiently in the offline setting. First, SINGLE-NF: reporting the NF of a\nquery string in an input text. Second, ALL-NF: reporting an occurrence and the\nNF of each string of positive NF in an input text. For many applications,\nhowever, facilitating these computations in an online manner is highly\ndesirable. We are the first to solve the above two problems in the online\nsetting, and we do so in optimal time, assuming, as is common, a constant-size\nalphabet: SINGLE-NF in $O(m)$ time and ALL-NF in $O(n)$ time. Our results are\nachieved by first designing new and simpler offline algorithms using suffix\ntrees, proving additional properties of NF, and exploiting Ukkonen's online\nsuffix tree construction algorithm and results on implicit node maintenance in\nan implicit suffix tree by Breslauer and Italiano.","PeriodicalId":501525,"journal":{"name":"arXiv - CS - Data Structures and Algorithms","volume":"80 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Data Structures and Algorithms","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.00308","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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.
在线计算字符串净频率
长度为 $m$ 的字符串在长度为 $n$ 的文本中的净频率(NF)是该字符串在文本中以唯一的左扩展和右扩展出现的次数。最近,Guo 等人[CPM 2024]的研究表明,NF 是一个有趣的组合,而且有两个关键问题可以在离线环境下高效计算。首先,SINGLE-NF:报告输入文本中一个水字符串的 NF。第二,ALL-NF:报告输入文本中每个正 NF 字符串的出现和 NF。然而,对于许多应用来说,以在线方式方便地进行这些计算是非常可取的。我们是第一个在在线设置中解决上述两个问题的人,而且是在最佳时间内解决的,假设(如常见的那样)字母大小不变:单-NF 在 $O(m)$ 时间内求解,而全-NF 在 $O(n)$ 时间内求解。我们的结果是通过以下方法实现的:首先使用后缀树设计新的、更简单的离线算法,证明 NF 的附加属性,利用 Ukkonen 的在线后缀树构造算法,以及 Breslauer 和 Italiano 关于隐式后缀树中隐式节点维护的结果。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信