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 条
  • [1] Fast algorithms for single and multiple pattern Cartesian tree matching
    Song, Siwoo
    Gu, Geonmo
    Ryu, Cheol
    Faro, Simone
    Lecroq, Thierry
    Park, Kunsoo
    Theoretical Computer Science, 2021, 849 : 47 - 63
  • [2] Fast algorithms for single and multiple pattern Cartesian tree matching
    Song, Siwoo
    Gu, Geonmo
    Ryu, Cheol
    Faro, Simone
    Lecroq, Thierry
    Park, Kunsoo
    THEORETICAL COMPUTER SCIENCE, 2021, 849 : 47 - 63
  • [3] Approximate Cartesian Tree Pattern Matching
    Kim, Sungmin
    Han, Yo-Sub
    DEVELOPMENTS IN LANGUAGE THEORY, DLT 2024, 2024, 14791 : 189 - 202
  • [4] A Fast Multiple Pattern Matching Algorithm using Context Free Grammar and Tree Model
    Phanindra, G.
    Shankar, K. V. V. N. Ravi
    Sreenivas, P. Deepak
    INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND NETWORK SECURITY, 2007, 7 (09): : 231 - 234
  • [5] A fast tree pattern matching algorithm for XML query
    Yao, JT
    Zhang, M
    IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE (WI 2004), PROCEEDINGS, 2004, : 235 - 241
  • [6] A Fast Improved Multiple Pattern Matching Algorithm
    Al-Qiari, Al-Khadher
    Al-Issa, Yazan
    2018 9TH INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION SYSTEMS (ICICS), 2018, : 55 - 60
  • [7] Finding Periods in Cartesian Tree Matching
    Bataa, Magsarjav
    Park, Sung Gwan
    Amir, Amihood
    Landau, Gad M.
    Park, Kunsoo
    COMBINATORIAL ALGORITHMS, IWOCA 2019, 2019, 11638 : 70 - 84
  • [8] Fast Pattern Matching in Compressed Text using Wavelet Tree
    Mishra, Surya Prakash
    Prasad, Rajesh
    Singh, Gurmit
    IETE JOURNAL OF RESEARCH, 2018, 64 (01) : 87 - 99
  • [9] A fast multiple pattern matching using in intrusion detection
    Xin, Yang
    Wei, Jing-Zhi
    Niu, Xin-Xin
    Gu, Yang
    Beijing Youdian Daxue Xuebao/Journal of Beijing University of Posts and Telecommunications, 2008, 31 (03): : 19 - 23
  • [10] Fast multiple pattern algorithm for Chinese string matching
    Shen, Zhou
    Wang, Yong-Cheng
    Xu, Yi-Zhen
    Shanghai Jiaotong Daxue Xuebao/Journal of Shanghai Jiaotong University, 2001, 35 (09): : 1285 - 1289