In the classical problem of text indexing, the objective is to preprocess a text $T=T[1..n]$ over an integer alphabet $[0..σ)$ into a data structure that supports efficient pattern matching queries. Given a pattern $P=P[1..m]$, a reporting query lists the set $\mathsf{Occ}_T(P)$ of occurrences of $P$ in $T$, whereas a counting query returns $|\mathsf{Occ}_T(P)|$. Space-efficient suffix-tree variants use only $\mathcal{O}(n\logσ)$ bits and support reporting queries in $\mathcal{O}(m+|\mathsf{Occ}_T(P)|\cdot\log_σ^ε n)$ time, where $ε>0$ is an arbitrarily small constant, and counting queries in $\mathcal{O}(m)$ time. Notably, space-efficient indexes for more advanced counting queries have largely resisted achieving the same optimal (or near-optimal) query times when using less than $Θ(n\log n)$ bits. We change this situation by proposing a general framework that supports advanced counting queries, denoted by $φ_T(P)$, provided that $φ_T$ satisfies two mild conditions: (1) $φ_T(P)$ is an integer in $[0..|\mathsf{Occ}_T(P)|]$ that can be computed from $\mathsf{Occ}_T(P)$ via sorting; and (2) $φ_T(Q)\geqφ_T(P)$ for every prefix $Q$ of $P$. We show that our framework supports optimal $\mathcal{O}(m)$-time queries using $\mathcal{O}(n\logσ+n(\log\log n)^2)$ bits or near-optimal $\mathcal{O}(m\log_σ^ε n)$-time queries using $\mathcal{O}(n\logσ)$ bits. As an example, our trade-offs improve upon the classical MAST index for counting non-overlapping occurrences [Apostolico and Preparata, Algorithmica, 1996; Brodal et al., ICALP 2002], which uses $\mathcal{O}(n\log n)$ bits and supports $\mathcal{O}(m)$-time queries, and the recent compact index for the same problem [Bals et al., ESA 2026], which uses $\mathcal{O}(n\logσ)$ bits and supports $\mathcal{O}(m\log n\log_σ^ε n)$-time queries.


翻译:暂无翻译

0
下载
关闭预览

相关内容

AAAI 2020论文解读:关注实体以更好地理解文本
AI科技评论
17+阅读 · 2019年11月20日
近期语音类前沿论文
深度学习每日摘要
14+阅读 · 2019年3月17日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
论文报告 | Graph-based Neural Multi-Document Summarization
科技创新与创业
15+阅读 · 2017年12月15日
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
3+阅读 · 2017年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
Arxiv
0+阅读 · 11月10日
VIP会员
最新内容
乌克兰无人机饱和战场中的错误教训
专知会员服务
17+阅读 · 11月17日
面向最后一战术英里:美军无人机创新尝试
专知会员服务
14+阅读 · 11月17日
《美空军2026条令文件:对海压制作战》
专知会员服务
30+阅读 · 11月9日
人工智能与战争的未来
专知会员服务
14+阅读 · 11月8日
《Agent Mosaic:识别智能体LLM系统中的机密泄露》
专知会员服务
14+阅读 · 11月8日
相关VIP内容
相关资讯
AAAI 2020论文解读:关注实体以更好地理解文本
AI科技评论
17+阅读 · 2019年11月20日
近期语音类前沿论文
深度学习每日摘要
14+阅读 · 2019年3月17日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
论文报告 | Graph-based Neural Multi-Document Summarization
科技创新与创业
15+阅读 · 2017年12月15日
相关基金
国家自然科学基金
0+阅读 · 2017年12月31日
国家自然科学基金
3+阅读 · 2017年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
国家自然科学基金
5+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员