使用稀疏计数集的高效正则表达式匹配
Efficient Regex Matching with Sparse Counting-Sets
AI总结:
针对带计数操作的正则表达式匹配中计数集复制导致的性能瓶颈,提出稀疏计数集方法,仅维护必要计数器值以减少复制开销,实现更高效的匹配算法。
摘要:
带计数操作的正则表达式(c-regexes)通过允许向子表达式添加数值界限,提供了一种紧凑的重复模式表示。最近的工作引入了计数集数据结构,允许同时更新多个计数器值以实现高效匹配。然而,当由于分支转换的存在而必须复制计数集时,这种方法会出现性能瓶颈。我们提出了一种稀疏计数集方法,通过仅维护必要的计数器值来减少复制开销,从而产生更高效的匹配算法。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。