Efficient generation of restricted growth words

  • Authors:
  • Toufik Mansour;Vincent Vajnovszki

  • Affiliations:
  • Department of Mathematics, University of Haifa, 31905 Haifa, Israel;LE2I, Université de Bourgogne, BP 47870, 21078 Dijon CEDEX, France

  • Venue:
  • Information Processing Letters
  • Year:
  • 2013

Quantified Score

Hi-index 0.89

Visualization

Abstract

A length n restricted growth word is a word w=w"1w"2...w"n over the set of integers where w"1=0 and each w"i, i1, lies between 0 and the value of a word statistics of the prefix w"1w"2...w"i"-"1 of w, plus one. Restricted growth words simultaneously generalize combinatorial objects as restricted growth functions, staircase words and ascent or binary sequences. Here we give a generic generating algorithm for restricted growth words. It produces a Gray code and runs in constant average time provided that the corresponding statistics has some local properties.