Computing maximal-exponent factors in an overlap-free word

作者:

Highlights:

摘要

The exponent of a word is the quotient of its length over its smallest period. The exponent and the period of a word can be computed in time proportional to the word length. We design an algorithm to compute the maximal exponent of all factors of an overlap-free word. Our algorithm runs in linear-time on a fixed-size alphabet, while a naive solution of the question would run in cubic time. The solution for non-overlap-free words derives from algorithms to compute all maximal repetitions, also called runs, occurring in the word.We also show there is a linear number of occurrences of maximal-exponent factors in an overlap-free word. Their maximal number lies between 0.66n and 2.25n in a word of length n. The algorithm can additionally locate all of them in linear time.

论文关键词:Word,String,Repetition,Power,Repeat,Periodicity,Word exponent,Return word,Algorithm,Automaton

论文评审过程:Received 6 November 2013, Revised 26 August 2014, Accepted 27 August 2014, Available online 2 December 2015, Version of Record 29 December 2015.

论文官网地址:https://doi.org/10.1016/j.jcss.2015.11.007