Fast Matching of Regular Patterns with Synchronizing Counting (Technical Report)

L. Holík, J. Síč, Lenka Turonová, Tomáš Vojnar
{"title":"Fast Matching of Regular Patterns with Synchronizing Counting (Technical Report)","authors":"L. Holík, J. Síč, Lenka Turonová, Tomáš Vojnar","doi":"10.48550/arXiv.2301.12851","DOIUrl":null,"url":null,"abstract":"Fast matching of regular expressions with bounded repetition, aka counting, such as (ab){50,100}, i.e., matching linear in the length of the text and independent of the repetition bounds, has been an open problem for at least two decades. We show that, for a wide class of regular expressions with counting, which we call synchronizing, fast matching is possible. We empirically show that the class covers nearly all counting used in usual applications of regex matching. This complexity result is based on an improvement and analysis of a recent matching algorithm that compiles regexes to deterministic counting-set automata (automata with registers that hold sets of numbers).","PeriodicalId":330721,"journal":{"name":"Foundations of Software Science and Computation Structure","volume":"79 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-01-30","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Foundations of Software Science and Computation Structure","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.48550/arXiv.2301.12851","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

Fast matching of regular expressions with bounded repetition, aka counting, such as (ab){50,100}, i.e., matching linear in the length of the text and independent of the repetition bounds, has been an open problem for at least two decades. We show that, for a wide class of regular expressions with counting, which we call synchronizing, fast matching is possible. We empirically show that the class covers nearly all counting used in usual applications of regex matching. This complexity result is based on an improvement and analysis of a recent matching algorithm that compiles regexes to deterministic counting-set automata (automata with registers that hold sets of numbers).
规则模式与同步计数的快速匹配(技术报告)
正则表达式与有界重复的快速匹配,也就是计数,比如(ab){50,100},即在文本长度上线性匹配并且独立于重复边界,已经是至少二十年来的一个开放问题。我们表明,对于具有计数(我们称之为同步)的广泛正则表达式类,快速匹配是可能的。我们的经验表明,该类几乎涵盖了正则表达式匹配常用应用程序中使用的所有计数。这种复杂性结果是基于对最近的一种匹配算法的改进和分析,该算法将正则表达式编译为确定性计数集自动机(具有保存数字集的寄存器的自动机)。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信