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 条
  • [21] Compressed pattern matching in JPEG images
    Klein, Shmuel T.
    Shapira, Dana
    INTERNATIONAL JOURNAL OF FOUNDATIONS OF COMPUTER SCIENCE, 2006, 17 (06) : 1297 - 1306
  • [22] Space-Efficient String Indexing for Wildcard Pattern Matching
    Lewenstein, Moshe
    Nekrich, Yakov
    Vitter, Jeffrey Scott
    31ST INTERNATIONAL SYMPOSIUM ON THEORETICAL ASPECTS OF COMPUTER SCIENCE (STACS 2014), 2014, 25 : 506 - 517
  • [23] Practical Space-Efficient Index for Structural Pattern Matching
    Kim, Sung-Hwan
    Cho, Hwan-Gue
    COMBINATORIAL ALGORITHMS (IWOCA 2022), 2022, 13270 : 369 - 382
  • [24] ANALYZING THE PERFORMANCE DIFFERENCES BETWEEN PATTERN MATCHING AND COMPRESSED PATTERN MATCHING ON TEXTS
    Erdogan, Cihat
    Bulus, H. Nusret
    Diri, Banu
    2013 INTERNATIONAL CONFERENCE ON ELECTRONICS, COMPUTER AND COMPUTATION (ICECCO), 2013, : 135 - 138
  • [25] Logarithmic-Time Internal Pattern Matching Queries in Compressed and Dynamic Texts
    Duyster, Anouk
    Kociumaka, Tomasz
    STRING PROCESSING AND INFORMATION RETRIEVAL, SPIRE 2024, 2025, 14899 : 102 - 117
  • [26] Compressed and fully compressed pattern matching in one and two dimensions
    Rytter, W
    PROCEEDINGS OF THE IEEE, 2000, 88 (11) : 1769 - 1778
  • [27] A Space and Time Efficient Algorithm for Constructing Compressed Suffix Arrays
    Wing-Kai Hon
    Tak-Wah Lam
    Kunihiko Sadakane
    Wing-Kin Sung
    Siu-Ming Yiu
    Algorithmica, 2007, 48 : 23 - 36
  • [28] A space and time efficient algorithm for constructing compressed suffix arrays
    Hon, Wing-Kai
    Lam, Tak-Wah
    Sadakane, Kunihiko
    Sung, Wing-Kin
    Yiu, Siu-Ming
    ALGORITHMICA, 2007, 48 (01) : 23 - 36
  • [29] Log Analysis via Space-time Pattern Matching
    Bouillard, Anne
    Buob, Marc-Olivier
    Raynal, Maxime
    Salaun, Achille
    2018 14TH INTERNATIONAL CONFERENCE ON NETWORK AND SERVICE MANAGEMENT (CNSM), 2018, : 303 - 307
  • [30] Fast Pattern Matching in Compressed Data Packages
    Berger, Michael S.
    Mortensen, Brian B.
    2010 IEEE GLOBECOM WORKSHOPS, 2010, : 1591 - 1595