paper

Word Break on SLP-Compressed Texts

arXiv:2503.23759 · doi:10.1109/DCC62719.2025.00023

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 .

Accepted to DCC 2025

Word Break on SLP-Compressed Texts · wovepaper