Maximal Palindromes in MPC: Simple and Optimal

Abstract

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

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…