Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Acknowledgement
The satisfaction and euphoria that accompanies the successful completion of this task would be
Incomplete without the mention of the people who made it possible. Their constant guidance and
encouragement crowned our effort with success
It is a great pleasure to express our sincere thanks to Prof. Rajdeep Niyogi, Department of
Computer Science and Engineering, IIT Roorkee, for her encouragement valuable suggestions,
intellectual, influence and constant support during the course of the project.
We would like to express our gratitude toward our fellow classmates who helps us to complete
this project.
Algorithm 1
Randomized coloring in one round (code for node v)
1: choose color tv uniformly at random from {1, . . . , /ln n};
2: send ID(v) and tv to all neighbours;
3: let Gtv be the graph induced by all nodes u with tu = tv;
4: let tv be the maximum degree of Gtv ;
5: compute O(2tv logm)-coloring of Gtv => color yv;
6: color xv := yv[/ ln n] + tv 1
X
5|X
1st Round :
Now 5 is randomly selected from Cu={1,2,3,4,5} and 5 will select color X then it will send X
to all the adjacent nodes. and let 2 and 4 already have different color Y and Z therefore they
will make Y and Z permanent and 2 will send Y to its adjacent uncolored nodes but all
adjacent nodes of 2 are colored hence it will not send any color and 4 will send Z to its
adjacent uncolored nodes i.e. 1 . 5, 2 and 4 will be deleted from Cu and hence Cu={1,3}.
X
5|X
Now 1 will receive Z since now 1 has no color therefore it will uncolored again.
2nd Round:
Now we randomly select u i.e. 3 and Cu={1,3}. Let 3 also select Y then it will send color Y
to uncolored adjacent nodes i.e. 1 since 1 is uncolored therefore it will not assign any color to
it and 3 will be deleted from Cu ,now Cu=={1}.
Z
1
2|Y
Y
4|Z
3|Y
5|X
3rd Round:
Now we select 1 and send color X and will not send to anyone since all adjacent nodes are
permanently colored.
Z
1|X
2|Y
4|Z
3|Y
X
5|X
System model:
The generalized graph vertex coloring problem can be formulated as follows. Let a graph (V,
E) of vertices, v belong to V and edges e belong to E connecting two vertices be given. The
vertices consist, for example, of collections of wireless network elements which are able to
Department of Computer Science and Engineering , IIT Roorkee
Figure: Looking into one round neighbourhood graph N1(6,3) of 6-colored degree 3 graphs .
Nodes {x,{x1,x2,x3}} depicted as star graphs with centre color x and leaf color x1,x2,x3.
we will discuss here the vertex coloring problem in a distributed network. in a distributed
network, we know that there is no shared memory. each node communicates to other nodes
via message passing. We want these nodes to compute a coloring of the associated graph.
During each round every uncolored vertex v executes the following five steps:
1. Choose parameter rndvalue(v) 2 [0::1].
2. Send to all neighbors the following parameters: deg(v), rndvalue(v), and the first legal
color (not on the list of forbidden colors).
3. Compare its own parameters with these received from the neighbors and check which
vertex has the highest priority.
4. If vertex v has the highest priority, keep the proposed color and stop.
5. If not, update list usedcolor(v).
Example:
Initially:
After round 1:
After round 3:
In this example, initially all the nodes and their links are given. First of all degree of every
node is calculated.
Then in first round node with highest degree is calculated and then it is assigned a color in
forbidden list of colors. i-e V1. Now adj.(V1)=V2,V3,V4,V5,V6 update their forbidden
colors.
In second round, V2,V4,V5 has degree 3. Rndvalue breaks the tie. And V5 is selected. Color
assigned to V5 is 2. V2 and V4 update their forbidden list of colors by 2. Also V3 and V6 are
independent so they are assigned color 2.
In third round, V2 and V4 are independent, so they update their color as 3.
Bibliography:
[1] K. Kothapalli, and S. Pemmaraju. Distributed graph coloring in a few rounds. In Proc. Of
the 30th ACM Symp. on Principles of Distributed Computing, pages 31-40,2011.
[2] F. Kuhn, and R. Wattenhofer. On the complexity of distributed graph coloring. In Proc. of
the 25th ACM Symp. on Principles of Distributed Computing , pages 715 ,2006.
[3] Kubale, M. and Kuszner, L.: A better practical algorithm for distributed graph coloring.
Proc. of IEEE International Conference on Parallel Computing in Electrical Engineering
(2002) 7275.
[4] J.-M. Koljonen, M. Alava, M. Peltomki, and O. Tirkkonen, Distributed generalized
graph coloring, in Proc. 4th IEEE Int. Conf. Self- Adapt. Self-Organizing Syst. , Sep. 2010,
pp. 174183.