Time/space efficient compressed pattern matching

被引:0
|
作者
Gasieniec, L [1 ]
Potapov, I [1 ]
机构
[1] Univ Liverpool, Dept Comp Sci, Liverpool L69 7ZF, Merseyside, England
关键词
compressed pattern matching; straight-line program; directed acyclic graph traversal; small extra space;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
An exact pattern matching problem is to find all occurrences of a pattern p in a text t. We say that the pattern matching algorithm is optimal if its running time is linear in the sizes of t, and p, i.e., O(t + p). Perhaps one of the most interesting settings of the pattern matching problem is when one has to design an efficient algorithm with a help of a small extra space. In this paper we explore this setting to the extreme. We work under an assumption that the text t is available only in a compressed form, represented by a straight-line program. The compression methods based on efficient construction of straight-line programs are as competitive as the compression standards, including the Lempel-Ziv compression scheme and recently intensively studied text compression via block sorting, due to Burrows and Wheeler. Our main result is an algorithm that solves the compressed string matching problem in an optimal linear time, with a help of a constant extra space. We also discuss an efficient implementation of a version our algorithm showing that the new concept may have also some interesting real applications. Our result is in contrast with many other compressed pattern matching algorithms where the goal is to find all pattern occurrences in time related to the size of the compressed text. However one must remember that all previous algorithms used at least a linear (in a compressed text, a dictionary, or a pattern) extra memory while our algorithm can be implemented in a constant size extra space. Also from the practical point of view, when the compression ratio is constant (very rarely smaller than 25%), there is no dramatic difference between the running time based on the size of the compressed text and the size of the original text, while an extra space resources might be strictly limited.
引用
收藏
页码:137 / 154
页数:18
相关论文
共 50 条
  • [31] Faster Fully Compressed Pattern Matching by Recompression
    Jez, Artur
    AUTOMATA, LANGUAGES, AND PROGRAMMING, ICALP 2012 PT I, 2012, 7391 : 533 - 544
  • [32] Optimal Pattern Matching in LZW Compressed Strings
    Gawrychowski, Pawel
    ACM TRANSACTIONS ON ALGORITHMS, 2013, 9 (03)
  • [33] Optimal pattern matching in LZW compressed strings
    Gawrychowski, Pawel
    PROCEEDINGS OF THE TWENTY-SECOND ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2011, : 362 - 372
  • [34] On Performance of Compressed Pattern Matching on VF Codes
    Yoshida, Satoshi
    Kida, Takuya
    2011 DATA COMPRESSION CONFERENCE (DCC), 2011, : 486 - 486
  • [35] Pattern matching in text compressed with the ID heuristic
    Barcaccia, P
    Cresti, A
    De Agostino, S
    DCC '98 - DATA COMPRESSION CONFERENCE, 1998, : 113 - 118
  • [36] Faster Fully Compressed Pattern Matching by Recompression
    Jez, Artur
    ACM TRANSACTIONS ON ALGORITHMS, 2015, 11 (03)
  • [37] Multiple pattern matching in LZW compressed text
    Kida, T
    Takeda, M
    Shinohara, A
    Miyazaki, M
    Arikawa, S
    DCC '98 - DATA COMPRESSION CONFERENCE, 1998, : 103 - 112
  • [38] Space-Efficient Construction of Compressed Indexes in Deterministic Linear Time
    Munro, J. Ian
    Navarro, Gonzalo
    Nekrich, Yakov
    PROCEEDINGS OF THE TWENTY-EIGHTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, 2017, : 408 - 424
  • [39] Efficient Regular Expression Matching on Compressed Strings
    Han, Yutong
    Wang, Bin
    Yang, Xiaochun
    Zhu, Huaijie
    DATABASE SYSTEMS FOR ADVANCED APPLICATIONS (DASFAA 2017), PT II, 2017, 10178 : 219 - 234
  • [40] An efficient pattern matching algorithm
    Sleit, Azzam
    AlMobaideen, Wesam
    Baarah, Aladdin H.
    Abusitta, Adel H.
    Journal of Applied Sciences, 2007, 7 (18) : 2691 - 2695