in Graph Theory reopened by
2,414 views
17 votes
17 votes
Consider the undirected graph G defined as follows. The vertices are bit string of length 5. We have an edge between vertex “a” and vertex “b” iff “a” and “b” differ only in one bit possible (i.e., hamming distance1). What is the ratio of chromatic number of G to the diameter of G?

Model Question : https://gateoverflow.in/3564/gate2006-it_25
in Graph Theory reopened by
by
2.4k views

1 comment

@sourav_anand ans given as 2/5 . it might be wrong also. pls explain your approach
Thx in advance
0
0

1 Answer

30 votes
30 votes
Best answer
apply the given condition of connectivity to 2 bits..00==>01==>11==>10==>00

for 3 bits..image in comment box

ACTUALLY IT IS  A N CUBE...

vertex of n cube=n;

degree of n cube=n;

edges of n cube=n*2^(n-1)
chromatic number=2(ALWAYS)
hence chromatic number of the graph=2

now diameter of graph=number of bits =5

thus ratio =2/5
edited by

4 Comments

edited by
@sourav_anad how did u visualize it as cube ?

According to ur picture for 3 bit length
would the ratio be 2/3 ?
1
1
yes...for n= 3 bit ratio =2/3 and for n=5 bit ratio=2/5;
5
5
For n=2, the ratio is coming as 2/n as for 2 bits hamming distance is not equal to 2.

What would be answer for n=2?
0
0
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true