Properties of Gray and Binary Representations

Jonathan Rowe, LD Whitley, L Barbulescu, J-P Watson

Research output: Contribution to journalArticle

34 Citations (Scopus)


Representations are formalized as encodings that map the search space to the vertex set of a graph. We define the notion of bit equivalent encodings and show that for such encodings the corresponding Walsh coefficients are also conserved. We focus on Gray codes as particular types of encoding and present a review of properties related to the use of Gray codes. Gray codes are widely used in conjunction with genetic algorithms and bit-climbing algorithms for parameter optimization problems. We present new convergence proofs for a special class of unimodal functions; the proofs show that a steepest ascent bit climber using any reflected Gray code representation reaches the global optimum in a number of steps that is linear with respect to the encoding size. There are in fact many different Gray codes. Shifting is defined as a mechanism for dynamically switching from one Gray code representation to another in order to escape local optima. Theoretical results that substantially improve our understanding of the Gray codes and the shifting mechanism are presented. New proofs also shed light on the number of unique Gray code neighborhoods accessible via shifting and on how neighborhood structure changes during shifting. We show that shifting can improve the performance of both a local search algorithm as well as one of the best genetic algorithms currently available.
Original languageEnglish
Pages (from-to)47-76
Number of pages30
JournalEvolutionary Computation
Issue number1
Publication statusPublished - 1 Jan 2004


Dive into the research topics of 'Properties of Gray and Binary Representations'. Together they form a unique fingerprint.

Cite this