English

On Periodicity Lemma for Partial Words

Discrete Mathematics 2018-01-04 v1 Data Structures and Algorithms Combinatorics

Abstract

We investigate the function L(h,p,q)L(h,p,q), called here the threshold function, related to periodicity of partial words (words with holes). The value L(h,p,q)L(h,p,q) is defined as the minimum length threshold which guarantees that a natural extension of the periodicity lemma is valid for partial words with hh holes and (strong) periods p,qp,q. We show how to evaluate the threshold function in O(logp+logq)O(\log p + \log q) time, which is an improvement upon the best previously known O(p+q)O(p+q)-time algorithm. In a series of papers, the formulae for the threshold function, in terms of pp and qq, were provided for each fixed h7h \le 7. We demystify the generic structure of such formulae, and for each value hh we express the threshold function in terms of a piecewise-linear function with O(h)O(h) pieces.

Cite

@article{arxiv.1801.01096,
  title  = {On Periodicity Lemma for Partial Words},
  author = {Tomasz Kociumaka and Jakub Radoszewski and Wojciech Rytter and Tomasz Waleń},
  journal= {arXiv preprint arXiv:1801.01096},
  year   = {2018}
}

Comments

Full version of a paper accepted to LATA 2018

R2 v1 2026-06-22T23:35:41.890Z