Lune

ICDE2026顶会

Contextual Pattern Mining and Counting

Ling Li, Daniel Gibney, Sharma V. Thankachan, Solon P. Pissis, Grigorios Loukides

摘要

Given a string P of length m, a longer string T of length n > m, and two integers l ≥ 0 and r ≥ 0, the context of P in T is the set of all string pairs (L, R), with |L| = l and |R| = r, such that the string LP R occurs in T . We introduce two problems related to the notion of context: (1) the Contextual Pattern Mining (CPM) problem, which given T , (m, l, r), and an integer τ > 0, asks for outputting the context of each substring P of length m of T , provided that the size of the context of P is at least τ ; and (2) the Contextual Pattern Counting (CPC) problem, which asks for preprocessing T so that the size of the context of a given query string P of length m can be found efficiently. Both problems have direct applications in text mining and bioinformatics and are challenging to solve for realistically long strings.

For CPM, we propose a linear-work algorithm that either uses only internal memory, or a bounded amount of internal memory and external memory, which allows much larger datasets to be handled. For CPC, we propose an O(n)-space index that can be constructed in O(n) time and answers queries in O(m) + O(1) time. We further improve the practical performance of the CPC index by optimizations that exploit the LZ77 factorization of T and an upper bound on the query length. Using billion-letter datasets from different domains, we show that the external memory version of our CPM algorithm can deal with very large datasets using a small amount of internal memory while its runtime is comparable to that of the internal memory version. Interestingly, we also show that our optimized index for CPC outperforms an approach based on the state of the art for the reporting version of CPC [Navarro, SPIRE 2020] in terms of query time, index size, construction time, and construction space, often by more than an order of magnitude.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Text Indexing for Long Patterns: Anchors are All you Need 引用了 FSST: Fast Random Access String Compression
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper3

  1. Text Indexing for Long Patterns: Anchors are All you NeedLorraine A. K. Ayad, Grigorios Loukides, Solon P. PissisVLDB 2023 · 10 次引用
  2. Efficiently Enumerating Substrings with Statistically Significant Frequencies of Locally Optimal Occurrences in Gigantic StringAtsuyoshi Nakamura, Ichigaku Takigawa, Hiroshi MamitsukaAAAI 2020 · 2 次引用
  3. FSST: Fast Random Access String CompressionPeter Boncz, Thomas Neumann, Viktor LeisVLDB 2020

相关 Paper

  1. Indexing Strings with UtilitiesGiulia Bernardini, Huiping Chen, Alessio Conte, Roberto Grossi 等ICDE 2025
  2. Lempel-Ziv (LZ77) Factorization in Sublinear TimeDominik Kempa, Tomasz KociumakaFOCS 2024 · 2 次引用
  3. Pattern Matching on Grammar-Compressed Strings in Linear TimeMoses Ganardi, Pawel GawrychowskiSODA 2022 · 7 次引用
  4. BITIRP - Efficient Time Intervals-Related Pattern MiningLidor Prager, Robert MoskovitchKDD 2026
  5. Locally Consistent Parsing for Text Indexing in Small SpaceOr Birenzwige, Shay Golan, Ely PoratSODA 2020 · 16 次引用
黄昏的海面,两侧是细线勾勒的悬崖