A Simple Grammar-Based Index for Finding Approximately Longest Common Substrings

Published: 01 Jan 2023, Last Modified: 29 Jan 2025SPIRE 2023EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: We show how, given positive constants \(\epsilon \) and \(\delta \), and an \(\alpha \)-balanced straight-line program with g rules for a text T[1..n], we can build an O(g)-space index that, given a pattern P[1..m], in \(O(m\log ^\delta g)\) time finds w.h.p. a substring of P that occurs in T and whose length is at least a \((1 - \epsilon )\) fraction of the longest common substring of P and T. The correctness can be ensured within the same expected query time.
Loading

OpenReview is a long-term project to advance science through improved peer review with legal nonprofit status. We gratefully acknowledge the support of the OpenReview Sponsors. © 2025 OpenReview