paper

Compressed Subsequence Matching and Packed Tree Coloring

arXiv:1403.1065

Abstract

We present a new algorithm for subsequence matching in grammar compressed strings. Given a grammar of size compressing a string of size and a pattern string of size over an alphabet of size , our algorithm uses space and or time. Here is the word size and is the number of occurrences of the pattern. Our algorithm uses less space than previous algorithms and is also faster for occurrences. The algorithm uses a new data structure that allows us to efficiently find the next occurrence of a given character after a given position in a compressed string. This data structure in turn is based on a new data structure for the tree color problem, where the node colors are packed in bit strings.

To appear at CPM '14