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 条
  • [41] Efficient Online String Matching Based on Characters Distance Text Sampling
    Faro, Simone
    Marino, Francesco Pio
    Pavone, Arianna
    ALGORITHMICA, 2020, 82 (11) : 3390 - 3412
  • [42] Efficient Online String Matching Based on Characters Distance Text Sampling
    Simone Faro
    Francesco Pio Marino
    Arianna Pavone
    Algorithmica, 2020, 82 : 3390 - 3412
  • [43] Face Recognition Using Ensemble String Matching
    Chen, Weiping
    Gao, Yongsheng
    IEEE TRANSACTIONS ON IMAGE PROCESSING, 2013, 22 (12) : 4798 - 4808
  • [44] A Simple String Matching Method for Shape Recognition
    Wu, Wen-Yen
    PROCEEDINGS OF THE 10TH WORLD CONGRESS ON INTELLIGENT CONTROL AND AUTOMATION (WCICA 2012), 2012, : 4696 - 4700
  • [45] Logo recognition in video stills by string matching
    den Hollander, RJM
    Hanjalic, A
    2003 INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, VOL 3, PROCEEDINGS, 2003, : 517 - 520
  • [46] Efficient night gait recognition based on template matching
    Tan, Daoliang
    Huang, Kaiqi
    Yu, Shiqi
    Tan, Tieniu
    18TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION, VOL 3, PROCEEDINGS, 2006, : 1000 - +
  • [47] Extended attributed string matching for shape recognition
    Chen, SW
    Tung, ST
    Fang, CY
    Cherng, S
    Jain, AK
    COMPUTER VISION AND IMAGE UNDERSTANDING, 1998, 70 (01) : 36 - 50
  • [48] Efficient algorithms for (δ, γ, α) and (δ, kΔ, α)-matching
    Fredriksson, Kimmo
    Grabowski, Szymon
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2008, 19 (01) : 163 - 183
  • [49] Efficient Parallel Algorithms for String Comparison
    Mishin, Nikita
    Berezun, Daniil
    Tiskin, Alexander
    50TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING, 2021,
  • [50] On the equivalence of weak learnability and linear separability: new relaxations and efficient boosting algorithms
    Shalev-Shwartz, Shai
    Singer, Yoram
    MACHINE LEARNING, 2010, 80 (2-3) : 141 - 163