Linear time construction of a compressed Gray code

  • Authors:
  • Darko Dimitrov;Tomáš DvořáK;Petr Gregor;Riste ŠKrekovski

  • Affiliations:
  • Institut für Informatik, Freie Universität, Berlin, Germany;Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic;Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic;Department of Mathematics, University of Ljubljana, Ljubljana, Slovenia

  • Venue:
  • European Journal of Combinatorics
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

An n-bit (cyclic) Gray code is a (cyclic) ordering of all n-bit strings such that consecutive strings differ in exactly one bit. We construct an n-bit cyclic Gray code C"n whose graph of transitions is isomorphic to an induced subgraph of the d-dimensional hypercube where d=@?lgn@?. This allows to represent C"n so that only @Q(loglogn) bits per n-bit string are needed. We provide an explicit description of an algorithm which generates the transition sequence of C"n in linear time with respect to the output size.