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 条
  • [21] Families of FPGA-based algorithms tor approximate string matching
    Van Court, T
    Herbordt, MC
    15TH IEEE INTERNATIONAL CONFERENCE ON APPLICATION-SPECIFIC SYSTEMS, ARCHITECTURES AND PROCESSORS, PROCEEDINGS, 2004, : 354 - +
  • [22] Faster algorithms for string matching problems: matching the convolution bound
    Indyk, P
    39TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 1998, : 166 - 173
  • [23] Efficient recognition algorithms for boundary and linear eNCE graph languages
    Kim, C
    ACTA INFORMATICA, 2001, 37 (09) : 619 - 632
  • [24] Efficient recognition algorithms for boundary and linear eNCE graph languages
    Changwook Kim
    Acta Informatica, 2001, 37 : 619 - 632
  • [25] Fast algorithms for approximate circular string matching
    Carl Barton
    Costas S Iliopoulos
    Solon P Pissis
    Algorithms for Molecular Biology, 9
  • [26] Methodology for evaluating string matching algorithms on multiprocessor
    Soewito, Benfano
    Weng, Ning
    2008 IEEE/ACS INTERNATIONAL CONFERENCE ON COMPUTER SYSTEMS AND APPLICATIONS, VOLS 1-3, 2008, : 20 - 27
  • [27] EXPERIMENTAL RESULTS ON STRING-MATCHING ALGORITHMS
    LECROQ, T
    SOFTWARE-PRACTICE & EXPERIENCE, 1995, 25 (07): : 727 - 765
  • [28] Fast algorithms for approximate circular string matching
    Barton, Carl
    Iliopoulos, Costas S.
    Pissis, Solon P.
    ALGORITHMS FOR MOLECULAR BIOLOGY, 2014, 9
  • [29] A Survey of the Hybrid Exact String Matching Algorithms
    Almazroi, Abdulwahab Ali
    Shah, Asad Ali
    Almazroi, Abdulaleem Ali
    Mohammed, Fathey
    Al-Kumaim, Nabil Hasan
    ADVANCES ON INTELLIGENT INFORMATICS AND COMPUTING: HEALTH INFORMATICS, INTELLIGENT SYSTEMS, DATA SCIENCE AND SMART COMPUTING, 2022, 127 : 173 - 189
  • [30] Faster algorithms for string matching with k mismatches
    Amir, A
    Lewenstein, M
    Porat, E
    JOURNAL OF ALGORITHMS-COGNITION INFORMATICS AND LOGIC, 2004, 50 (02): : 257 - 275