TY - GEN
T1 - Crochemore's string matching algorithm
T2 - Prague Stringology Conference 2013, PSC 2013
AU - Kärkkäinen, Juha
AU - Kempa, Dominik
AU - Puglisi, Simon J.
PY - 2013
Y1 - 2013
N2 - 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.
AB - 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.
UR - https://www.scopus.com/pages/publications/84884603994
M3 - Conference contribution
AN - SCOPUS:84884603994
SN - 9788001053300
T3 - Proceedings of the Prague Stringology Conference 2013, PSC 2013
SP - 168
EP - 175
BT - Proceedings of the Prague Stringology Conference 2013, PSC 2013
Y2 - 2 September 2013 through 4 September 2013
ER -