arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.13014cs.DS
收藏

MPC中的最大回文:简单且最优

Maximal Palindromes in MPC: Simple and Optimal

CWI, Amsterdam, The Netherlands(荷兰阿姆斯特丹CWI);Vrije Universiteit, Amsterdam, The Netherlands(荷兰阿姆斯特丹自由大学)

Solon P. Pissis

AI总结:

针对大规模并行计算(MPC)模型中的最长回文子串(LPS)问题,提出简单且最优的$\mathcal{O}(1)$轮算法,总时间和内存均为$\mathcal{O}(n)$,支持计算所有最大回文,还能在自适应MPC模型中绕过约束。

摘要:

在经典的最长回文子串(LPS)问题中,给定一个长度为$n$的字符串$S$,任务是输出$S$中的一个最长回文子串。Gilbert、Hajiaghayi、Saleh和Seddighin在[SPAA 2023]中展示了如何在大规模并行计算(MPC)模型中以$\mathcal{O}(1)$轮、$\mathcal{\widetilde{O}}(n)$总内存且每台机器$\mathcal{\widetilde{O}}(n^{1-ε})$内存的复杂度解决LPS问题,其中$ε\in (0,0.5]$。我们提出了一种简单且最优的算法,在MPC模型中以$\mathcal{O}(1)$轮解决LPS问题,总时间和内存均为$\mathcal{O}(n)$,每台机器内存为$\mathcal{O}(n^{1-ε})$($ε\in (0,0.5]$)。该算法的一个关键特性是能以相同复杂度计算所有最大回文。此外,我们的新见解使我们能在自适应MPC模型中绕过$ε\in (0,0.5]$的约束。我们的算法与Gilbert等人提出的LPS问题算法均为随机算法,且以高概率成功。

英文摘要:

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 $\mathcal{O}(1)$ rounds using $\mathcal{\widetilde{O}}(n)$ total memory, with $\mathcal{\widetilde{O}}(n^{1-ε})$ memory per machine, for any $ε\in (0,0.5]$. We present a simple and optimal algorithm to solve the LPS problem in the MPC model in $\mathcal{O}(1)$ rounds. The total time and memory are $\mathcal{O}(n)$, with $\mathcal{O}(n^{1-ε})$ memory per machine, for any $ε\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 $ε\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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑