Fast Multiple Pattern Cartesian Tree Matching

被引:1
|
作者
Gu, Geonmo [1 ]
Song, Siwoo [1 ]
Faro, Simone [2 ]
Lecroq, Thierry [3 ]
Park, Kunsoo [1 ]
机构
[1] Seoul Natl Univ, Seoul, South Korea
[2] Univ Catania, Catania, Italy
[3] Normandie Univ, Rouen, France
基金
新加坡国家研究基金会;
关键词
Multiple pattern Cartesian tree matching; Parent-distance encoding; Binary encoding; Fingerprinting methods; ALGORITHM;
D O I
10.1007/978-3-030-39881-1_10
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Cartesian tree matching is the problem of finding all sub-strings in a given text which have the same Cartesian trees as that of a given pattern. In this paper, we deal with Cartesian tree matching for the case of multiple patterns. We present two fingerprinting methods, i.e., the parent-distance encoding and the binary encoding. By combining an efficient fingerprinting method and a conventional multiple string matching algorithm, we can efficiently solve multiple pattern Cartesian tree matching. We propose three practical algorithms for multiple pattern Cartesian tree matching based on the Wu-Manber algorithm, the Rabin-Karp algorithm, and the Alpha Skip Search algorithm, respectively. In the experiments we compare our solutions against the previous algorithm [18]. Our solutions run faster than the previous algorithm as the pattern lengths increase. Especially, our algorithm based on Wu-Manber runs up to 33 times faster.
引用
收藏
页码:107 / 119
页数:13
相关论文
共 50 条
  • [31] Quantum Pattern Matching Fast on Average
    Ashley Montanaro
    Algorithmica, 2017, 77 : 16 - 39
  • [32] Fast and Simple Circular Pattern Matching
    Susik, Robert
    Grabowski, Szymon
    Deorowicz, Sebastian
    MAN-MACHINE INTERACTIONS 3, 2014, 242 : 537 - 544
  • [33] Quantum Pattern Matching Fast on Average
    Montanaro, Ashley
    ALGORITHMICA, 2017, 77 (01) : 16 - 39
  • [34] Fast exact pattern matching algorithm
    College of Computer Science and Technology, Zhejiang University, Hangzhou 310027, China
    J. Comput. Inf. Syst., 2009, 1 (235-243):
  • [35] State Complexity of Regular Tree Languages for Tree Pattern Matching
    Ko, Sang-Ki
    Lee, Ha-Rim
    Han, Yo-Sub
    DESCRIPTIONAL COMPLEXITY OF FORMAL SYSTEMS, DCFS 2014, 2014, 8614 : 246 - 257
  • [36] UNORDERED TREE MATCHING AND TREE PATTERN QUERIES IN XML DATABASES
    Chen, Yangjun
    ICSOFT 2009: PROCEEDINGS OF THE 4TH INTERNATIONAL CONFERENCE ON SOFTWARE AND DATA TECHNOLOGIES, VOL 2, 2009, : 191 - 198
  • [38] DISTRIBUTED ALGORITHMS FOR TREE PATTERN-MATCHING
    SINGH, G
    SMOLKA, SA
    RAMAKRISHNAN, IV
    LECTURE NOTES IN COMPUTER SCIENCE, 1988, 312 : 92 - 107
  • [39] Tree signatures and unordered XML pattern matching
    Zezula, P
    Mandreoli, F
    Martoglia, R
    SOFSEM 2004: THEORY AND PRACTICE OF COMPUTER SCIENCE, PROCEEDINGS, 2004, 2932 : 122 - 139
  • [40] A fast updated frequent pattern tree
    Tzung-Pei Hong
    Jun-Wei Lin
    Yu-Lung Wu
    2006 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS, VOLS 1-6, PROCEEDINGS, 2006, : 2167 - +