Title of article :
Gray codes with bounded weights
Author/Authors :
Dvo??k، نويسنده , , Tom?? and Fink، نويسنده , , Ji?? and Gregor، نويسنده , , Petr and Koubek، نويسنده , , V?clav، نويسنده ,
Issue Information :
روزنامه با شماره پیاپی سال 2012
Abstract :
Given a set H of binary vectors of length n , is there a cyclic listing of H so that every two successive vectors differ in a single coordinate? The problem of the existence of such a listing, which is called a cyclic Gray code of H , is known to be NP-complete in general. The goal of this paper is therefore to specify boundaries between its intractability and polynomial decidability.
at purpose, we consider a restriction when the vectors of H are of a bounded weight. A weight of a vector u ∈ { 0 , 1 } n is the number of 1’s in u . We show that if every vertex of H has weight k or k + 1 , our problem is decidable in polynomial time for k ≤ 1 and NP-complete for k ≥ 2 . Furthermore, if k = 2 and for every i ∈ [ n ] there are at most m vectors of H of weight two having one in the i -th coordinate, then the problem becomes decidable in polynomial time for m ≤ 3 and NP-complete for m ≥ 13 .
llowing complementary problem is also known to be NP-hard: given an F ⊆ { 0 , 1 } n , which now plays the role of a set of faults to be avoided, is there a cyclic Gray code of { 0 , 1 } n ∖ F ? We show that if every vertex of F has weight at most k , the problem is decidable in polynomial time for k ≤ 2 and NP-hard for k ≥ 5 . It follows that there is a function f ( n ) = Θ ( n 4 ) such that the existence of a cyclic Gray code of { 0 , 1 } n ∖ F for a given set F ⊆ { 0 , 1 } n of size at most f ( n ) is NP-hard.
ition, we study the cases when the Gray code does not have to be cyclic, and moreover, when the first and the last vectors of the code are prescribed. For these two modifications, all NP-hardness and NP-completeness results hold as well.
Keywords :
Faulty vertex , Hypercube , hamiltonian path , NP-Hard , Polynomial algorithm , Gray code , hamiltonian cycle
Journal title :
Discrete Mathematics
Journal title :
Discrete Mathematics