English

A Subquadratic Algorithm for Minimum Palindromic Factorization

Data Structures and Algorithms 2020-12-15 v2 Discrete Mathematics

Abstract

We give an O(nlogn)\mathcal{O}(n \log n)-time, O(n)\mathcal{O}(n)-space algorithm for factoring a string into the minimum number of palindromic substrings. That is, given a string S[1..n]S [1..n], in O(nlogn)\mathcal{O}(n \log n) time our algorithm returns the minimum number of palindromes S1,,SS_1,\ldots, S_\ell such that S=S1SS = S_1 \cdots S_\ell. We also show that the time complexity is O(n)\mathcal{O}(n) on average and Ω(nlogn)\Omega(n\log n) in the worst case. The last result is based on a characterization of the palindromic structure of Zimin words.

Keywords

Cite

@article{arxiv.1403.2431,
  title  = {A Subquadratic Algorithm for Minimum Palindromic Factorization},
  author = {Gabriele Fici and Travis Gagie and Juha Kärkkäinen and Dominik Kempa},
  journal= {arXiv preprint arXiv:1403.2431},
  year   = {2020}
}

Comments

Accepted for publication in Journal of Discrete Algorithms

R2 v1 2026-06-22T03:23:57.584Z