Maximal Palindromes in MPC: Simple and Optimal
arXiv:2511.13014
Abstract
In the classical longest palindromic substring (LPS) problem, we are given a string of length , and the task is to output a longest palindromic substring in . Gilbert, Hajiaghayi, Saleh, and Seddighin [SPAA 2023] showed how to solve the LPS problem in the Massively Parallel Computation (MPC) model in rounds using total memory, with memory per machine, for any . We present a simple and optimal algorithm to solve the LPS problem in the MPC model in rounds. The total time and memory are , with memory per machine, for any . A key attribute of our algorithm is its ability to compute all maximal palindromes in the same complexities. Furthermore, our new insights allow us to bypass the constraint in the Adaptive MPC model. Our algorithms and the one proposed by Gilbert et al. for the LPS problem are randomized and succeed with high probability.
SOSA 2026