paper

Palindromic k-Factorization in Pure Linear Time

arXiv:2002.03965

Abstract

Given a string of length over a general alphabet and an integer , the problem is to decide whether is a concatenation of nonempty palindromes. Two previously known solutions for this problem work in time and respectively. Here we settle the complexity of this problem in the word-RAM model, presenting an -time online deciding algorithm. The algorithm simultaneously finds the minimum odd number of factors and the minimum even number of factors in a factorization of a string into nonempty palindromes. We also demonstrate how to get an explicit factorization of into palindromes with an -time offline postprocessing.

accepted to MFCS 2020