Skip to search boxSkip to navigationSkip to main content

Time/Space Efficient Compressed Pattern Matching

  • Leszek Ga̧sieniec
    ,
  • Igor Potapov(corresponding author)
*Corresponding author for this work
  • University of Liverpool
Scholary Output:
Contribution to journal
Article
Peer-review

Related Event

Title

13th International Symposium on Fundamentals of Computation Theory, FCT 2001

Event type

Conference

Date

08/22/2001 - 08/24/2001

Location

RigaLatvia

Abstract

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., 0(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.

Publication Information

Output type

Scholary Output:
Contribution to journal
Article
Peer-review

Original language

English (US)

Pages from-to (Number of pages)

Pages 137-154 (18 pages)

Journal (Volume, Issue Number)

Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Volume 56, Issue 1-2)

Publication milestones

  • Published - 07/01/2003

Publication status

Published - 07/01/2003

ISSN

0302-9743

Publication IDs

  • Scopus: 17544389252
  • Scopus: 84974711026

Publication metrics

Metrics

SciVal
citations
7
Scopus
citations
Fractional count
1
Fractional count
0.50
Fractional count
1
Fractional count
0.50
Fractional count
1
Fractional count
1
SciVal
FWCI
0.30
SciVal
Author count
2
SciVal
Paper percentile
52

PlumX

Captures
6
Citation count
8