Past Issues

Studies in Informatics and Control
Vol. 5, No. 1, 1996

Constant Time Algorithm for Generating Binary Trees Gray Codes

Vincent Vajnovszki
Abstract

Frank Ruskey and Andrzej Proskurowski (1990) developed a recursive algorithm for generating binary trees as represented by bitstrings with a given prefix, such that successive bitstrings differ by the trans­-position of two bits and the concatenation of generated lists forms a Gray code. This paper presents a new Gray code for the set of all such bitstrings and an algorithm for directly generating binary trees represented by Zaks sequences.

Keywords

bitstrings, generating algorithms, Gray codes, trees.

View full article