arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.20479cs.FL
收藏

RE#:基于导数的高性能正则表达式匹配,支持交集、补集和环视

RE#: High Performance Derivative-Based Regex Matching with Intersection, Complement and Lookarounds

Ian Erik Varatalu, Margus Veanes, Juhan-Peep Ernits

AI总结:

RE#是一种基于符号导数、无回溯的正则表达式匹配工具,支持补集、交集和环视,具有输入线性复杂度,在基准测试中比Rust次快引擎快71%以上,并大幅超越现有引擎。

摘要:

我们提出了一种基于符号导数的正则表达式匹配工具及理论RE#,它不使用回溯,除经典运算符外,还支持补集、交集和环视。我们形式化地发展了该理论,并证明主要匹配算法在理论和实验上均具有输入线性复杂度。我们在流行的基准测试上进行了全面评估,结果表明,在基线测试中,RE#比Rust中次快的正则表达式引擎快71%以上,并且在基准测试的扩展版本上,其性能优于所有最先进的引擎,往往高出几个数量级。

英文摘要:

We present a tool and theory RE# for regular expression matching that is built on symbolic derivatives, does not use backtracking, and, in addition to the classical operators, also supports complement, intersection and lookarounds. We develop the theory formally and show that the main matching algorithm has input-linear complexity both in theory as well as experimentally. We apply thorough evaluation on popular benchmarks that show that RE# is over 71% faster than the next fastest regex engine in Rust on the baseline, and outperforms all state-of-the-art engines on extensions of the benchmarks often by several orders of magnitude.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑