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] 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
  • [2] 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
  • [3] Fast Regular Expression Matching in a Large Static Text
    Abu Hawas, Fatma
    Arslan, Abdullah N.
    2016 INTERNATIONAL CONFERENCE ON COMPUTATIONAL SCIENCE & COMPUTATIONAL INTELLIGENCE (CSCI), 2016, : 1304 - 1309
  • [4] Fast text searching for regular expressions or automaton searching on tries
    BaezaYates, RA
    Gonnet, GH
    JOURNAL OF THE ACM, 1996, 43 (06) : 915 - 936
  • [5] Sparse Regular Expression Matching
    Bille, Philip
    Gortz, Inge Li
    PROCEEDINGS OF THE 2024 ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, SODA, 2024, : 3354 - 3375
  • [6] Fast, memory-efficient regular expression matching with NFA-OBDDs
    Yang, Liu
    Karim, Rezwana
    Ganapathy, Vinod
    Smith, Randy
    COMPUTER NETWORKS, 2011, 55 (15) : 3376 - 3393
  • [7] A Survey on Regular Expression Matching for Deep Packet Inspection: Applications, Algorithms, and Hardware Platforms
    Xu, Chengcheng
    Chen, Shuhui
    Su, Jinshu
    Yiu, S. M.
    Hui, Lucas C. K.
    IEEE COMMUNICATIONS SURVEYS AND TUTORIALS, 2016, 18 (04): : 2991 - 3029
  • [8] Optimization of pattern matching circuits for, regular expression on FPGA
    Lin, Cheng-Hung
    Huang, Chih-Tsun
    Jiang, Chang-Ping
    Chang, Shih-Chieh
    IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2007, 15 (12) : 1303 - 1310
  • [9] Fast profile matching algorithms - A survey
    Pizzi, Cinzia
    Ukkonen, Esko
    THEORETICAL COMPUTER SCIENCE, 2008, 395 (2-3) : 137 - 157
  • [10] From regular expression matching to parsing
    Bille, Philip
    Li Gortz, Inge
    ACTA INFORMATICA, 2022, 59 (06) : 709 - 724