English

Longest Property-Preserved Common Factor

Data Structures and Algorithms 2018-10-05 v1

Abstract

In this paper we introduce a new family of string processing problems. We are given two or more strings and we are asked to compute a factor common to all strings that preserves a specific property and has maximal length. Here we consider three fundamental string properties: square-free factors, periodic factors, and palindromic factors under three different settings, one per property. In the first setting, we are given a string xx and we are asked to construct a data structure over xx answering the following type of on-line queries: given string yy, find a longest square-free factor common to xx and yy. In the second setting, we are given kk strings and an integer 1<kk1 < k'\leq k and we are asked to find a longest periodic factor common to at least kk' strings. In the third setting, we are given two strings and we are asked to find a longest palindromic factor common to the two strings. We present linear-time solutions for all settings. We anticipate that our paradigm can be extended to other string properties or settings.

Keywords

Cite

@article{arxiv.1810.02099,
  title  = {Longest Property-Preserved Common Factor},
  author = {Lorraine A. K Ayad and Giulia Bernardini and Roberto Grossi and Costas S. Iliopoulos and Nadia Pisanti and Solon P. Pissis and Giovanna Rosone},
  journal= {arXiv preprint arXiv:1810.02099},
  year   = {2018}
}

Comments

Extended version of SPIRE 2018 paper

R2 v1 2026-06-23T04:28:11.358Z