最佳时间字典压缩索引

Anders Roy Christiansen, Mikko Berggren Ettienne, T. Kociumaka, G. Navarro, N. Prezza
{"title":"最佳时间字典压缩索引","authors":"Anders Roy Christiansen, Mikko Berggren Ettienne, T. Kociumaka, G. Navarro, N. Prezza","doi":"10.1145/3426473","DOIUrl":null,"url":null,"abstract":"We describe the first self-indexes able to count and locate pattern occurrences in optimal time within a space bounded by the size of the most popular dictionary compressors. To achieve this result, we combine several recent findings, including string attractors—new combinatorial objects encompassing most known compressibility measures for highly repetitive texts—and grammars based on locally consistent parsing. More in detail, letγ be the size of the smallest attractor for a text T of length n. The measureγ is an (asymptotic) lower bound to the size of dictionary compressors based on Lempel–Ziv, context-free grammars, and many others. The smallest known text representations in terms of attractors use space O(γ log (n/γ)), and our lightest indexes work within the same asymptotic space. Let ε > 0 be a suitably small constant fixed at construction time, m be the pattern length, and occ be the number of its text occurrences. Our index counts pattern occurrences in O(m+log 2+ε n) time and locates them in O(m+(occ+1)log ε n) time. These times already outperform those of most dictionary-compressed indexes, while obtaining the least asymptotic space for any index searching within O((m+occ),polylog, n) time. Further, by increasing the space to O(γ log (n/γ)log ε n), we reduce the locating time to the optimal O(m+occ), and within O(γ log (n/γ)log n) space we can also count in optimal O(m) time. No dictionary-compressed index had obtained this time before. All our indexes can be constructed in O(n) space and O(nlog n) expected time. As a by-product of independent interest, we show how to build, in O(n) expected time and without knowing the sizeγ of the smallest attractor (which is NP-hard to find), a run-length context-free grammar of size O(γ log (n/γ)) generating (only) T. As a result, our indexes can be built without knowingγ.","PeriodicalId":154047,"journal":{"name":"ACM Transactions on Algorithms (TALG)","volume":"11 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-11-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"49","resultStr":"{\"title\":\"Optimal-Time Dictionary-Compressed Indexes\",\"authors\":\"Anders Roy Christiansen, Mikko Berggren Ettienne, T. Kociumaka, G. Navarro, N. Prezza\",\"doi\":\"10.1145/3426473\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We describe the first self-indexes able to count and locate pattern occurrences in optimal time within a space bounded by the size of the most popular dictionary compressors. To achieve this result, we combine several recent findings, including string attractors—new combinatorial objects encompassing most known compressibility measures for highly repetitive texts—and grammars based on locally consistent parsing. More in detail, letγ be the size of the smallest attractor for a text T of length n. The measureγ is an (asymptotic) lower bound to the size of dictionary compressors based on Lempel–Ziv, context-free grammars, and many others. The smallest known text representations in terms of attractors use space O(γ log (n/γ)), and our lightest indexes work within the same asymptotic space. Let ε > 0 be a suitably small constant fixed at construction time, m be the pattern length, and occ be the number of its text occurrences. Our index counts pattern occurrences in O(m+log 2+ε n) time and locates them in O(m+(occ+1)log ε n) time. These times already outperform those of most dictionary-compressed indexes, while obtaining the least asymptotic space for any index searching within O((m+occ),polylog, n) time. Further, by increasing the space to O(γ log (n/γ)log ε n), we reduce the locating time to the optimal O(m+occ), and within O(γ log (n/γ)log n) space we can also count in optimal O(m) time. No dictionary-compressed index had obtained this time before. All our indexes can be constructed in O(n) space and O(nlog n) expected time. As a by-product of independent interest, we show how to build, in O(n) expected time and without knowing the sizeγ of the smallest attractor (which is NP-hard to find), a run-length context-free grammar of size O(γ log (n/γ)) generating (only) T. As a result, our indexes can be built without knowingγ.\",\"PeriodicalId\":154047,\"journal\":{\"name\":\"ACM Transactions on Algorithms (TALG)\",\"volume\":\"11 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-11-30\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"49\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM Transactions on Algorithms (TALG)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3426473\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM Transactions on Algorithms (TALG)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3426473","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 49

摘要

我们描述了第一个能够在最流行的字典压缩器的大小所限定的空间内以最佳时间计数和定位模式出现的自索引。为了实现这个结果,我们结合了几个最近的发现,包括字符串吸引子(包含大多数已知的用于高度重复文本的压缩性度量的新组合对象)和基于局部一致解析的语法。更详细地说,设γ为长度为n的文本T的最小吸引子的大小。measureγ是基于Lempel-Ziv、上下文无关语法和许多其他语法的字典压缩器大小的(渐近)下界。关于吸引子的最小已知文本表示使用空间O(γ log (n/γ)),我们最轻的索引在相同的渐近空间内工作。设ε > 0为在构建时固定的一个适当的小常数,m为模式长度,occ为其文本出现的次数。我们的索引计数在O(m+log 2+ε n)时间内出现的模式,并将它们定位在O(m+(occ+1)log ε n)时间内。这些时间已经超过了大多数字典压缩索引的时间,同时在O((m+occ),polylog, n)时间内获得任何索引搜索的最小渐近空间。此外,通过将空间增加到O(γ log (n/γ)log ε n),我们将定位时间减少到最优O(m+occ),并且在O(γ log (n/γ)log n)空间内,我们也可以在最优O(m)时间内计数。在此之前没有获得过字典压缩索引。我们所有的索引都可以在O(n)空间和O(nlog n)预期时间内构建。作为独立兴趣的副产品,我们展示了如何在O(n)预期时间内构建一个大小为O(γ log (n/γ))的运行长度上下文无关语法,该语法的大小为O(γ log (n/γ)),仅生成t。因此,我们的索引可以在不知道γ的情况下构建。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Optimal-Time Dictionary-Compressed Indexes
We describe the first self-indexes able to count and locate pattern occurrences in optimal time within a space bounded by the size of the most popular dictionary compressors. To achieve this result, we combine several recent findings, including string attractors—new combinatorial objects encompassing most known compressibility measures for highly repetitive texts—and grammars based on locally consistent parsing. More in detail, letγ be the size of the smallest attractor for a text T of length n. The measureγ is an (asymptotic) lower bound to the size of dictionary compressors based on Lempel–Ziv, context-free grammars, and many others. The smallest known text representations in terms of attractors use space O(γ log (n/γ)), and our lightest indexes work within the same asymptotic space. Let ε > 0 be a suitably small constant fixed at construction time, m be the pattern length, and occ be the number of its text occurrences. Our index counts pattern occurrences in O(m+log 2+ε n) time and locates them in O(m+(occ+1)log ε n) time. These times already outperform those of most dictionary-compressed indexes, while obtaining the least asymptotic space for any index searching within O((m+occ),polylog, n) time. Further, by increasing the space to O(γ log (n/γ)log ε n), we reduce the locating time to the optimal O(m+occ), and within O(γ log (n/γ)log n) space we can also count in optimal O(m) time. No dictionary-compressed index had obtained this time before. All our indexes can be constructed in O(n) space and O(nlog n) expected time. As a by-product of independent interest, we show how to build, in O(n) expected time and without knowing the sizeγ of the smallest attractor (which is NP-hard to find), a run-length context-free grammar of size O(γ log (n/γ)) generating (only) T. As a result, our indexes can be built without knowingγ.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Generic Techniques for Building Top-k Structures Deterministic Leader Election in Anonymous Radio Networks A Learned Approach to Design Compressed Rank/Select Data Structures k-apices of Minor-closed Graph Classes. II. Parameterized Algorithms Fully Dynamic (Δ +1)-Coloring in O(1) Update Time
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1