Abstract.
We present the first Gray code for Motzkin words and their generalizations: k colored Motzkin words and Schröder words. The construction of these Gray codes is based on the observation that a k colored Motzkin word is the shuffle of a Dyck word by a k-ary variation on a trajectory which is a combination. In the final part of the paper we give some algorithmic considerations and other possible applications of the techniques introduced here.
Similar content being viewed by others
Author information
Authors and Affiliations
Additional information
Received: 7 May 2001 / 21 June 2002
Rights and permissions
About this article
Cite this article
Vajnovszki, V. Gray visiting Motzkins. Acta Informatica 38, 793–811 (2002). https://doi.org/10.1007/s00236-002-0097-0
Issue Date:
DOI: https://doi.org/10.1007/s00236-002-0097-0