计算机科学 > 数据结构与算法
[提交于 2014年3月10日]
标题:A Subquadratic Algorithm for Minimum Palindromic Factorization
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We give an $\mathcal{O}(n \log n)$-time, $\mathcal{O}(n)$-space algorithm for factoring a string into the minimum number of palindromic substrings. That is, given a string $S [1..n]$, in $\mathcal{O}(n \log n)$ time our algorithm returns the minimum number of palindromes $S_1,\ldots, S_\ell$ such that $S = S_1 \cdots S_\ell$. We also show that the time complexity is $\mathcal{O}(n)$ on average and $\Omega(n\log n)$ in the worst case. The last result is based on a characterization of the palindromic structure of Zimin words.
提交历史
来自:Gabriele Fici[v1] 2014年3月10日 星期一 22:18:40 UTC