Linear and efficient string matching algorithms based on weak factor recognition

被引:5
|
作者
Cantone D. [1 ]
Faro S. [1 ]
Pavone A. [2 ]
机构
[1] Department of Mathematics and Computer Science, University of Catania, Viale A.Doria n.6, Catania
[2] Department of Cognitive Science, University of Messina, Via Concezione n.6, Messina
来源
关键词
Design and analysis of algorithms; Experimental evaluation; String matching; Text processing; Weak factor;
D O I
10.1145/3301295
中图分类号
学科分类号
摘要
We present a simple and very efficient algorithm for string matching based on the combination of weak factor recognition and hashing. Despite its quadratic worst-case running time, our algorithm exhibits a sublinear behaviour. We also propose some practical improvements of our algorithm and a variant with a linear worst-case time complexity. Experimental results show that, in most cases, some of the variants of our algorithm obtain the best running times when compared, under various conditions, against the most effective algorithms present in the literature. For instance, in the case of small alphabets and long patterns, the gain in running time is up to 18%. This makes our proposed algorithm one of the most flexible solutions in practical cases. © 2019 Association for Computing Machinery.
引用
收藏
相关论文
共 50 条
  • [11] A COMPARISON OF 3 STRING MATCHING ALGORITHMS
    DEVONSMIT, G
    SOFTWARE-PRACTICE & EXPERIENCE, 1982, 12 (01): : 57 - 66
  • [12] The String Matching Algorithms Research Tool
    Faro, Simone
    Lecroq, Thierry
    Borzi, Stefano
    Di Mauro, Simone
    Maggio, Alessandro
    PROCEEDINGS OF THE PRAGUE STRINGOLOGY CONFERENCE 2016, 2016, : 99 - 113
  • [13] A comparison of approximate string matching algorithms
    Jokinen, P
    Tarhio, J
    Ukkonen, E
    SOFTWARE-PRACTICE & EXPERIENCE, 1996, 26 (12): : 1439 - 1458
  • [14] A review on parameterized string matching algorithms
    Singh, Rama
    Rai, Deepak
    Prasad, Rajesh
    JOURNAL OF INFORMATION & OPTIMIZATION SCIENCES, 2018, 39 (01):
  • [15] Fast exact string matching algorithms
    Lecroq, Thierry
    INFORMATION PROCESSING LETTERS, 2007, 102 (06) : 229 - 235
  • [16] Efficient parameterized string matching
    Fredriksson, Kimmo
    Mozgovoy, Maxim
    INFORMATION PROCESSING LETTERS, 2006, 100 (03) : 91 - 96
  • [17] OPTIMAL PARALLEL ALGORITHMS FOR STRING MATCHING
    GALIL, Z
    INFORMATION AND CONTROL, 1985, 67 (1-3): : 144 - 157
  • [18] RMESH algorithms for parallel string matching
    Lee, HC
    Ercal, F
    THIRD INTERNATIONAL SYMPOSIUM ON PARALLEL ARCHITECTURES, ALGORITHMS, AND NETWORKS, PROCEEDINGS (I-SPAN '97), 1997, : 223 - 226
  • [19] EFFICIENT SYSTOLIC STRING MATCHING
    MEGSON, GM
    ELECTRONICS LETTERS, 1990, 26 (24) : 2040 - 2042
  • [20] Efficient Algorithms for String-Based Negative Selection
    Elberfeld, Michael
    Textor, Johannes
    ARTIFICIAL IMMUNE SYSTEMS, PROCEEDINGS, 2009, 5666 : 109 - 121