Text Indexing and Pattern Matching with Ephemeral Edits
Abstract
A sequence of edit operations in a string is called ephemeral if operation constructing string , for all with , is reverted by operation that reconstructs . Such a sequence arises when processing a stream of independent edits or testing hypothetical edits. We introduce text indexing with ephemeral substring edits, a new version of text indexing. Our goal is to design a data structure over a given text that supports subsequent pattern matching queries with ephemeral substring insertions, deletions, or substitutions in the text; we require insertions and substitutions to be of constant length. In particular, we preprocess a text over an integer alphabet with in time. Then, we can preprocess any arbitrary pattern given online in time and space and allow any ephemeral sequence of edit operations in . Before reverting the th operation, we report all Occ occurrences of in in time. We also introduce pattern matching with ephemeral edits. In particular, we preprocess two strings and , each of length at most , over an integer alphabet with in time. Then, we allow any ephemeral sequence of edit operations in . Before reverting the th operation, we report all Occ occurrences of in in the optimal time. Along our way to this result, we also give an optimal solution for pattern matching with ephemeral block deletions.
Keywords
Cite
@article{arxiv.2508.05124,
title = {Text Indexing and Pattern Matching with Ephemeral Edits},
author = {Solon P. Pissis},
journal= {arXiv preprint arXiv:2508.05124},
year = {2026}
}
Comments
SOSA 2026 (abstract abridged to satisfy arXiv requirements)