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 条
[11]   Regular Expression Matching in Reconfigurable Hardware [J].
Ioannis Sourdis ;
João Bispo ;
João M. P. Cardoso ;
Stamatis Vassiliadis .
Journal of Signal Processing Systems, 2008, 51 :99-121
[12]   Regular Expression matching with memristor TCAMs [J].
Graves, Catherine E. ;
Ma, Wen ;
Sheng, Xia ;
Buchanan, Brent ;
Zheng, Le ;
Lam, Si-Ty ;
Li, Xuema ;
Chalamalasetti, Sai Rahul ;
Kiyama, Lennie ;
Foltin, Martin ;
Hardy, Matthew P. ;
Strachan, John Paul .
2018 IEEE INTERNATIONAL CONFERENCE ON REBOOTING COMPUTING (ICRC), 2018, :242-252
[13]   Regular expression matching in reconfigurable hardware [J].
Sourdis, Ioannis ;
Vassiliadis, Stamatis ;
Bispo, Joao ;
Cardoso, Joao M. P. .
JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2008, 51 (01) :99-121
[14]   Text Indexing for Regular Expression Matching [J].
Gibney, Daniel ;
Thankachan, Sharma, V .
ALGORITHMS, 2021, 14 (05)
[15]   Fast Algorithms for Computing the Statistics of Pattern Matching [J].
Zhang, Danna ;
Jin, Kai .
IEEE ACCESS, 2021, 9 (09) :114965-114976
[16]   Streaming Regular Expression Membership and Pattern Matching [J].
Dudek, Bartlomiej ;
Gawrychowski, Pawel ;
Gourdel, Garance ;
Starikovskaya, Tatiana .
PROCEEDINGS OF THE 2022 ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, SODA, 2022, :670-694
[17]   High Throughput Regular Expression Matching Algorithm [J].
Guo, Huifang ;
Jiang, Kunpeng .
2015 INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND COMMUNICATION NETWORKS (CICN), 2015, :368-372
[18]   Compact representations of automata for regular expression matching [J].
Zhang, Meng ;
Zhang, Yi ;
Hou, Chen .
INFORMATION PROCESSING LETTERS, 2016, 116 (12) :750-756
[19]   COMPACT FUNCTION FOR REGULAR EXPRESSION PATTERN MATCHING [J].
RICHARDS, M .
SOFTWARE-PRACTICE & EXPERIENCE, 1979, 9 (07) :527-534
[20]   Exploring Different Automata Representations for Efficient Regular Expression Matching on GPUs [J].
Yu, Xiaodong ;
Becchi, Michela .
ACM SIGPLAN NOTICES, 2013, 48 (08) :287-288