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 条
  • [41] Efficient Approximate Substring Matching in Compressed String
    Han, Yutong
    Wang, Bin
    Yang, Xiaochun
    Web-Age Information Management, Pt II, 2016, 9659 : 184 - 197
  • [42] Efficient string matching in Huffman compressed texts
    Fredriksson, K
    Tarhio, J
    FUNDAMENTA INFORMATICAE, 2004, 63 (01) : 1 - 16
  • [43] A dictionary-based compressed pattern matching algorithm
    Ho, MH
    Yen, HC
    26TH ANNUAL INTERNATIONAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE, PROCEEDINGS, 2002, : 873 - 878
  • [44] Linear pattern matching of compressed terms and polynomial rewriting
    Schmidt-Schauss, Manfred
    MATHEMATICAL STRUCTURES IN COMPUTER SCIENCE, 2018, 28 (08) : 1415 - 1450
  • [45] Collage system: a unifying framework for compressed pattern matching
    Kida, T
    Matsumoto, T
    Shibata, Y
    Takeda, M
    Shinohara, A
    Arikawa, S
    THEORETICAL COMPUTER SCIENCE, 2003, 298 (01) : 253 - 272
  • [46] Multiple-pattern matching for LZW compressed files
    Tao, T
    Mukherjee, A
    ITCC 2005: International Conference on Information Technology: Coding and Computing, Vol 1, 2005, : 91 - 96
  • [47] Manipulatable compressed string indexing technology for pattern matching
    Denzumi, Shuhei
    Arimura, Hiroki
    Sadakane, Kunihiko
    Journal of the Institute of Electronics, Information and Communication Engineers, 2014, 97 (12): : 1080 - 1085
  • [48] Phrase-based pattern matching in compressed text
    Culpepper, J. Shane
    Moffat, Alistair
    STRING PROCESSING AND INFORMATION RETRIEVAL, PROCEEDINGS, 2006, 4209 : 337 - 345
  • [49] Faster Approximate Pattern Matching in Compressed Repetitive Texts
    Gagie, Travis
    Gawrychowski, Pawel
    Puglisi, Simon J.
    ALGORITHMS AND COMPUTATION, 2011, 7074 : 653 - +
  • [50] RePair in Compressed Space and Time
    Sakai, Kensuke
    Ohno, Tatsuya
    Goto, Keisuke
    Takabatake, Yoshimasa
    Tomohiro, I
    Sakamoto, Hiroshi
    2019 DATA COMPRESSION CONFERENCE (DCC), 2019, : 518 - 527