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 条
  • [21] On the algorithm of Berztiss for tree pattern matching
    Valiente, G
    PROCEEDINGS OF THE FIFTH MEXICAN INTERNATIONAL CONFERENCE IN COMPUTER SCIENCE (ENC 2004), 2004, : 43 - 49
  • [22] PARALLEL TREE PATTERN-MATCHING
    RAMESH, R
    RAMAKRISHNAN, IV
    JOURNAL OF SYMBOLIC COMPUTATION, 1990, 9 (04) : 485 - 501
  • [23] FASTER TREE PATTERN-MATCHING
    DUBINER, M
    GALIL, Z
    MAGEN, E
    JOURNAL OF THE ACM, 1994, 41 (02) : 205 - 213
  • [24] EFFICIENT TREE PATTERN-MATCHING
    KOSARAJU, SR
    30TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, 1989, : 178 - 183
  • [25] On Tree Pattern Matching by Pushdown Automata
    Flouri, T.
    ACTA POLYTECHNICA, 2009, 49 (02) : 28 - 33
  • [26] Forward linearised tree pattern matching using tree pattern border array
    Travnicek, Jan
    Pecka, Tomas
    Oburka, Robin
    Janousek, Jan
    DISCRETE APPLIED MATHEMATICS, 2024, 352 : 33 - 43
  • [27] REVISITING MULTIPLE PATTERN MATCHING
    Susik, Robert
    Grabowski, Szymon
    Fredriksson, Kimmo
    COMPUTING AND INFORMATICS, 2019, 38 (04) : 937 - 962
  • [28] Fast Indexes for Gapped Pattern Matching
    Caceres, Manuel
    Puglisi, Simon J.
    Zhukova, Bella
    SOFSEM 2020: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2020, 12011 : 493 - 504
  • [29] Hardware Architecture for the Fast Pattern Matching
    Kastil, Jan
    Kosar, Vlastimil
    Korenek, Jan
    PROCEEDINGS OF THE 2013 IEEE 16TH INTERNATIONAL SYMPOSIUM ON DESIGN AND DIAGNOSTICS OF ELECTRONIC CIRCUITS & SYSTEMS (DDECS), 2013, : 120 - 123
  • [30] Fast pattern matching in indexed texts
    Senellart, J
    THEORETICAL COMPUTER SCIENCE, 2000, 237 (1-2) : 239 - 262