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 条
  • [41] Computing Longest Common Subsequence Under Cartesian-Tree Matching Model
    Tsujimoto, Taketo
    Shibata, Hiroki
    Mieno, Takuya
    Nakashima, Yuto
    Inenaga, Shunsuke
    COMBINATORIAL ALGORITHMS, IWOCA 2024, 2024, 14764 : 369 - 381
  • [42] A fast and exact single pattern matching algorithm
    Fan, Hongbo
    Yao, Nianmin
    Jisuanji Yanjiu yu Fazhan/Computer Research and Development, 2009, 46 (08): : 1341 - 1348
  • [43] Fast, flexible syntactic pattern matching and processing
    Griswold, William G.
    Atkinson, Darren C.
    McCurdy, Collin
    Program Comprehension, Workshop Proceedings, 1996, : 144 - 153
  • [44] TwigList:: Make twig pattern matching fast
    Qin, Lu
    Yu, Jeffrey Xu
    Ding, Bolin
    ADVANCES IN DATABASES: CONCEPTS, SYSTEMS AND APPLICATIONS, 2007, 4443 : 850 - +
  • [45] Fast practical multi-pattern matching
    Crochemore, M
    Czumaj, A
    Gasieniec, L
    Lecroq, T
    Plandowski, W
    Rytter, W
    INFORMATION PROCESSING LETTERS, 1999, 71 (3-4) : 107 - 113
  • [46] Fast, flexible syntactic pattern matching and processing
    Griswold, WG
    Atkinson, DC
    McCurdy, C
    FOURTH WORKSHOP ON PROGRAM COMPREHENSION, PROCEEDINGS, 1996, : 144 - 153
  • [47] Robust and Fast Pattern Matching for Intrusion Detection
    Namjoshi, Kedar
    Narlikar, Girija
    2010 PROCEEDINGS IEEE INFOCOM, 2010,
  • [48] Fast pattern-matching on indeterminate strings
    Holub, Jan
    Smyth, W. F.
    Wang, Shu
    JOURNAL OF DISCRETE ALGORITHMS, 2008, 6 (01) : 37 - 50
  • [49] Fast algorithm on string cross pattern matching
    Bao, Zheng-Rong
    Wang, Yong-Cheng
    Liu, Gong-Shen
    Han, Ke-Song
    Shanghai Jiaotong Daxue Xuebao/Journal of Shanghai Jiaotong University, 2003, 37 (03): : 420 - 423
  • [50] Fast algorithm on string cross pattern matching
    Liu Gongshen
    JournalofSystemsEngineeringandElectronics, 2005, (01) : 179 - 186