Fast algorithms for extended regular expression matching and searching

被引:0
|
作者
Ilie, L [1 ]
Shan, BZ [1 ]
Yu, S [1 ]
机构
[1] Univ Western Ontario, Dept Comp Sci, London, ON N6A 5B7, Canada
来源
STACS 2003, PROCEEDINGS | 2003年 / 2607卷
关键词
extended regular expressions; pattern matching; finite automata; algorithms; complexity;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Extended regular expressions are an extension of ordinary regular expressions by the operations of intersection and complement. We give new algorithms for extended regular expression matching and searching which improve significantly the (very old) best upper bound for this problem, due to Hopcroft and Ullman. For an extended regular expression of size m with p intersection and complement operators and an input word of length n our algorithms run in time O(mn(2)) and space O(pn(2)) while the one of Hopcroft and Ullman runs in time O(mn(3)) and space O(mn(2)). Since the matching problem for semiextended regular expressions (only intersection is added) has been very recently shown to be LOGCFL complete, our algorithms are very likely the best one can expect. We also emphasize the importance of the extended regular expressions for software programs currently using ordinary regular expressions and show how the algorithms presented can be improved to run significantly faster in practical applications.
引用
收藏
页码:179 / 190
页数:12
相关论文
共 50 条
  • [1] Overlay Automata and Algorithms for Fast and Scalable Regular Expression Matching
    Liu, Alex X.
    Torng, Eric
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2016, 24 (04) : 2400 - 2415
  • [2] New algorithms for regular expression matching
    Bille, Philip
    AUTOMATA, LANGUAGES AND PROGRAMMING, PT 1, 2006, 4051 : 643 - 654
  • [3] Fast and compact regular expression matching
    Bille, Philip
    Farach-Colton, Martin
    THEORETICAL COMPUTER SCIENCE, 2008, 409 (03) : 486 - 496
  • [4] Complexity analysis of extended regular expression matching
    Takahashi, Kazuya
    Minamide, Yasuhiko
    1600, Japan Society for Software Science and Technology (38): : 53 - 70
  • [5] An Improved DFA for Fast Regular Expression Matching
    Ficara, Domenico
    Giordano, Stefano
    Procissi, Gregorio
    Vitucci, Fabio
    Antichi, Gianni
    Di Pietro, Andrea
    ACM SIGCOMM COMPUTER COMMUNICATION REVIEW, 2008, 38 (05) : 31 - 40
  • [6] TOOLS FOR VERY FAST REGULAR EXPRESSION MATCHING
    Pasetto, Davide
    Petrini, Fabrizio
    Agarwal, Virat
    COMPUTER, 2010, 43 (03) : 50 - 58
  • [7] Towards Fast Regular Expression Matching in Practice
    Wang, Kai
    Li, Jun
    ACM SIGCOMM COMPUTER COMMUNICATION REVIEW, 2013, 43 (04) : 531 - 532
  • [8] Lean Formalization of Extended Regular Expression Matching with Lookarounds
    Zhuchko, Ekaterina
    Veanes, Margus
    Ebner, Gabriel
    PROCEEDINGS OF THE 13TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON CERTIFIED PROGRAMS AND PROOFS, CPP 2024, 2024, : 118 - 131
  • [9] Exploring efficient grouping algorithms in regular expression matching
    Xu, Chengcheng
    Su, Jinshu
    Chen, Shuhui
    PLOS ONE, 2018, 13 (10):
  • [10] Differential Encoding of DFAs for Fast Regular Expression Matching
    Ficara, Domenico
    Di Pietro, Andrea
    Giordano, Stefano
    Procissi, Gregorio
    Vitucci, Fabio
    Antichi, Gianni
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2011, 19 (03) : 683 - 694