Circular sturmian words and Hopcroft's algorithm

  • Authors:
  • G. Castiglione;A. Restivo;M. Sciortino

  • Affiliations:
  • University of Palermo, Dipartimento di Matematica ed Applicazioni, Via Archirafi 34, 90123 Palermo, Italy;University of Palermo, Dipartimento di Matematica ed Applicazioni, Via Archirafi 34, 90123 Palermo, Italy;University of Palermo, Dipartimento di Matematica ed Applicazioni, Via Archirafi 34, 90123 Palermo, Italy

  • Venue:
  • Theoretical Computer Science
  • Year:
  • 2009

Quantified Score

Hi-index 5.23

Visualization

Abstract

In order to analyze some extremal cases of Hopcroft's algorithm, we investigate the relationships between the combinatorial properties of a circular sturmian word (x) and the run of the algorithm on the cyclic automaton A"x associated to (x). The combinatorial properties of words taken into account make use of sturmian morphisms and give rise to the notion of reduction tree of a circular sturmian word. We prove that the shape of this tree uniquely characterizes the word itself. The properties of the run of Hopcroft's algorithm are expressed in terms of the derivation tree of the automaton, which is a tree that represents the refinement process that, in the execution of Hopcroft's algorithm, leads to the coarsest congruence of the automaton. We prove that the shape of the reduction tree of a circular sturmian word (x) coincides with that of the derivation tree T(A"x) of the automaton A"x. From this we derive a recursive formula to compute the running time of Hopcroft's algorithm on the automaton A"x, expressed in terms of parameters of the reduction tree of (x). As a special application, we obtain the time complexity @Q(nlogn) of the algorithm in the case of automata associated to Fibonacci words.