Word Break on SLP-Compressed Texts
Abstract
Word Break is a prototypical factorization problem in string processing: Given a word of length and a dictionary of strings, determine whether we can partition into words from . We propose the first algorithm that solves the Word Break problem over the SLP-compressed input text . Specifically, we show that, given the string represented using an SLP of size , we can solve the Word Break problem in time, where , , and is the matrix multiplication exponent. We obtain our algorithm as a simple corollary of a more general result: We show that in time, we can index the input text so that solving the Word Break problem for any of its substrings takes time (independent of the substring length). Our second contribution is a lower bound: We prove that, unless the Combinatorial -Clique Conjecture fails, there is no combinatorial algorithm for Word Break on SLP-compressed strings running in time for any .
Cite
@article{arxiv.2503.23759,
title = {Word Break on SLP-Compressed Texts},
author = {Rajat De and Dominik Kempa},
journal= {arXiv preprint arXiv:2503.23759},
year = {2025}
}
Comments
Accepted to DCC 2025