Skip to main navigation Skip to search Skip to main content

Crochemore's string matching algorithm: Simplification, extensions, applications

  • University of Helsinki

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

2 Scopus citations

Abstract

We address the problem of string matching in the special case where the pattern is very long. First, constant extra space algorithms are desirable with long patterns, and we describe a simplified version of Crochemore's algorithm retaining its linear time complexity and constant extra space usage. Second, long patterns are unlikely to occur in the text at all. Thus we define a generalization of string matching called Longest Prefix Matching that asks for the occurrences of the longest prefix of the pattern occurring in the text at least once, and modify the simplified Crochemore's algorithm to solve this problem. Finally, we define and solve the problem of Sparse Longest Prefix Matching that is useful when the pattern has to be split into multiple pieces because it is too long to be processed in one piece. These problems are motivated by and have application in Lempel-Ziv (LZ77) factorization.

Original languageEnglish
Title of host publicationProceedings of the Prague Stringology Conference 2013, PSC 2013
Pages168-175
Number of pages8
StatePublished - 2013
EventPrague Stringology Conference 2013, PSC 2013 - Prague, Czech Republic
Duration: Sep 2 2013 → Sep 4 2013

Publication series

NameProceedings of the Prague Stringology Conference 2013, PSC 2013

Conference

ConferencePrague Stringology Conference 2013, PSC 2013
Country/TerritoryCzech Republic
CityPrague
Period09/2/13 → 09/4/13

Fingerprint

Dive into the research topics of 'Crochemore's string matching algorithm: Simplification, extensions, applications'. Together they form a unique fingerprint.

Cite this