An efficient algorithm to decide periodicity of -recognisable sets using LSDF convention
arXiv:1708.06228 · doi:10.23638/LMCS-15(3:8)2019
Abstract
Let be an integer strictly greater than . Each set of nonnegative integers is represented in base by a language over . The set is said to be -recognisable if it is represented by a regular language. It is known that ultimately periodic sets are -recognisable, for every base , and Cobham's theorem implies the converse: no other set is -recognisable in every base . We consider the following decision problem: let be a set of nonnegative integers that is -recognisable, given as a finite automaton over , is periodic? Honkala showed in 1986 that this problem is decidable. Later on, Leroux used in 2005 the convention to write number representations with the least significant digit first (LSDF), and designed a quadratic algorithm to solve a more general problem. We use here LSDF convention as well and give a structural description of the minimal automata that accept periodic sets. Then, we show that it can be verified in linear time if a minimal automaton meets this description. In general, this yields a procedure to decide whether an automaton with states accepts an ultimately periodic set of nonnegative integers.