scholarly journals Permutational labelling of constant weight Gray codes

2002 ◽  
Vol 65 (3) ◽  
pp. 399-406
Author(s):  
Inessa Levi ◽  
Steve Seif

We prove that for positive integers n and r satisfying 1 < r < n, with the single exception of n = 4 and r = 2, there exists a constant weight Gray code of r-sets of Xn = {1, 2, …, n} that admits an orthogonal labelling by distinct partitions, with each subsequent partition obtained from the previous one by an application of a permutation of the underlying set. Specifically, an r-set A and a partition π of Xn are said to be orthogonal if every class of π meets A in exactly one element. We prove that for all n and r as stated, and taken modulo , there exists a list of the distinct r-sets of Xn with |Ai ∩ Ai+1| = r − 1 and a list of distinct partitions such that πi is orthogonal to both Ai and Ai+1, and πi+1 = πiλi for a suitable permutation λi of Xn.

10.37236/1249 ◽  
1996 ◽  
Vol 3 (1) ◽  
Author(s):  
Girish S. Bhat ◽  
Carla D. Savage

It is shown that balanced $n$-bit Gray codes can be constructed for all positive integers $n$. A balanced Gray code is one in which the bit changes are distributed as equally as possible among the bit positions. The strategy used is to prove the existence of a certain subsequence which will allow successful use of the construction proposed by Robinson and Cohn in 1981. Although Wagner and West proved in 1991 that balanced Gray code schemes exist when $n$ is a power of 2, the question for general $n$ has remained open since 1980 when it first attracted attention.


2019 ◽  
Vol 28 (1) ◽  
pp. 109-119
Author(s):  
Ahmad Sabri ◽  
Vincent Vajnovszki

Abstract A generalized (resp. p-ary) ballot sequence is a sequence over the set of non-negative integers (resp. integers less than p) where in any of its prefixes each positive integer i occurs at most as often as any integer less than i. We show that the Reected Gray Code order induces a cyclic 3-adjacent Gray code on both, the set of fixed length generalized ballot sequences and p-ary ballot sequences when p is even, that is, ordered list where consecutive sequences (regarding the list cyclically) differ in at most 3 adjacent positions. Non-trivial efficient generating algorithms for these ballot sequences, in lexicographic order and for the obtained Gray codes, are also presented.


10.37236/1720 ◽  
2003 ◽  
Vol 10 (1) ◽  
Author(s):  
Luis Goddyn ◽  
Pavol Gvozdjak

We show that there exists an $n$-bit cyclic binary Gray code all of whose bit runs have length at least $n - 3\log_2 n$. That is, there exists a cyclic ordering of $\{0,1\}^n$ such that adjacent words differ in exactly one (coordinate) bit, and such that no bit changes its value twice in any subsequence of $n-3\log_2 n$ consecutive words. Such Gray codes are 'locally distance preserving' in that Hamming distance equals index separation for nearby words in the sequence.


2009 ◽  
Vol 6 (2) ◽  
pp. 12 ◽  
Author(s):  
Afaq Ahmad ◽  
Mohammed M. Bait Suwailam

 The purpose of this paper is to present a new and faster algorithmic procedure for generating the n bi Gray codes. Thereby, through this paper we have presented the derivation, design and implementation of a newly developed algorithm for the generation of an n-bit binary reflected Gray code sequences. The developed algorithm is stemmed from the fact of generating and properly placing the min-terms from the universal set of all the possible min-terms [m0 m1 m2 …. mN] of Boolean function of n variables, where, 0 < N <  2n-1. The resulting algorithm is in concise form and trivial to implement. Furthermore, the developed algorithm is equipped with added attributes of optimizing of time and space while executed. 


2005 ◽  
Vol 47 (2) ◽  
pp. 221-236 ◽  
Author(s):  
INESSA LEVI ◽  
ROBERT B. McFADDEN ◽  
STEVE SEIF
Keyword(s):  

1996 ◽  
Vol 06 (01) ◽  
pp. 27-34 ◽  
Author(s):  
IVAN STOJMENOVIC

We present a cost-optimal parallel algorithm for generating n-ary reflected Gray codes, i.e. variations of m elements out of {0, 1,…, n–1} in a Gray code order. It uses a linear array of m processors, each having constant size memory and each being responsible for producing one part of a given variation. The algorithm is simple and uses a weaker model of computation than a recently published algorithm. In addition, it can be made adaptive (i.e. to run on a linear array with an arbitrary number of processors) and can be generalized to produce variations out of an arbitrary set of elements.


2014 ◽  
Vol 06 (04) ◽  
pp. 1450062
Author(s):  
Victoria Horan ◽  
Glenn Hurlbert

A Gray code is a listing structure for a set of combinatorial objects such that some consistent (usually minimal) change property is maintained throughout adjacent elements in the list. While Gray codes for m-ary strings have been considered in the past, we provide a new, simple Gray code for fixed-weight m-ary strings. In addition, we consider a relatively new type of Gray code known as overlap cycles and prove basic existence results concerning overlap cycles for fixed-weight and weight-range m-ary words.


2005 ◽  
Vol 78 (92) ◽  
pp. 87-92
Author(s):  
Seymour Lipschutz ◽  
Jie Gao ◽  
Wang Dianjun

Robert Sedgewick [5] lists various Gray codes for the permutations in Sn including the classical algorithm by Johnson and Trotter. Here we give an algorithm which constructs many families of Gray codes for Sn, which closely follows the construction of the Binary Reflexive Gray Code for the n-cube Qn.


2004 ◽  
Vol 12 (1) ◽  
pp. 47-76 ◽  
Author(s):  
Jonathan Rowe ◽  
Darrell Whitley ◽  
Laura Barbulescu ◽  
Jean-Paul Watson

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.


Sign in / Sign up

Export Citation Format

Share Document