English

Maximal Palindromes in MPC: Simple and Optimal

Data Structures and Algorithms 2025-11-18 v1

Abstract

In the classical longest palindromic substring (LPS) problem, we are given a string SS of length nn, and the task is to output a longest palindromic substring in SS. Gilbert, Hajiaghayi, Saleh, and Seddighin [SPAA 2023] showed how to solve the LPS problem in the Massively Parallel Computation (MPC) model in O(1)\mathcal{O}(1) rounds using O~(n)\mathcal{\widetilde{O}}(n) total memory, with O~(n1ϵ)\mathcal{\widetilde{O}}(n^{1-\epsilon}) memory per machine, for any ϵ(0,0.5]\epsilon \in (0,0.5]. We present a simple and optimal algorithm to solve the LPS problem in the MPC model in O(1)\mathcal{O}(1) rounds. The total time and memory are O(n)\mathcal{O}(n), with O(n1ϵ)\mathcal{O}(n^{1-\epsilon}) memory per machine, for any ϵ(0,0.5]\epsilon \in (0,0.5]. 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 ϵ(0,0.5]\epsilon \in (0,0.5] 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.

Keywords

Cite

@article{arxiv.2511.13014,
  title  = {Maximal Palindromes in MPC: Simple and Optimal},
  author = {Solon P. Pissis},
  journal= {arXiv preprint arXiv:2511.13014},
  year   = {2025}
}

Comments

SOSA 2026

R2 v1 2026-07-01T07:40:33.089Z