中文

Efficient Regex Matching with Sparse Counting-Sets

形式语言与自动机理论 2026-06-25 v1

摘要

Regular expressions with counting operations (c-regexes) offer a compact representation of repeating patterns by allowing numerical bounds to be added to subexpressions. Recent work introduced the counting-set data structure, which allows simultaneous updates of multiple counter values for efficient matching. However, this approach suffers from a performance bottleneck when counting-sets must be replicated due to the presence of branching transitions. We propose a sparse counting-set approach, which reduces the replication overhead by maintaining only essential counter values, thereby yielding a more efficient matching algorithm.

引用

@article{arxiv.2606.26679,
  title  = {Efficient Regex Matching with Sparse Counting-Sets},
  author = {Martin Berglund and Brink van der Merwe and Sicheol Sung},
  journal= {arXiv preprint arXiv:2606.26679},
  year   = {2026}
}

备注

In Proceedings NCMA 2026, arXiv:2606.25881