Palindromic k-Factorization in Pure Linear Time

02/10/2020
by   Mikhail Rubinchik, et al.
0

Given a string s of length n over a general alphabet and an integer k, the problem is to decide whether s is a concatenation of k nonempty palindromes. Two previously known solutions for this problem work in time O(kn) and O(nlog n) respectively. Here we settle the complexity of this problem in the word-RAM model, presenting an O(n)-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 s into k palindromes with an O(n)-time offline postprocessing.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/11/2021

Practical evaluation of Lyndon factors via alphabet reordering

We evaluate the influence of different alphabet orderings on the Lyndon ...
research
12/20/2019

String factorisations with maximum or minimum dimension

In this paper we consider two problems concerning string factorisation. ...
research
11/13/2020

Substring Query Complexity of String Reconstruction

Suppose an oracle knows a string S that is unknown to us and we want to ...
research
02/14/2023

Compressibility-Aware Quantum Algorithms on Strings

Sublinear time quantum algorithms have been established for many fundame...
research
05/30/2020

Longest Square Subsequence Problem Revisited

The longest square subsequence (LSS) problem consists of computing a lon...
research
10/25/2021

Palindromic factorization of rich words

A finite word w is called rich if it contains | w|+1 distinct palindromi...
research
02/10/2018

A geometric approach to integer factorization

We give a geometric approach to integer factorization. This approach is ...

Please sign up or login with your details

Forgot password? Click here to reset