Professional Documents
Culture Documents
15-16 Graph Coloring
15-16 Graph Coloring
15-16 Graph Coloring
10/28/2016
Graph
Colorings
Colorings of edges a nd vertices of a graph G are
useful, when one is interested in classifying
relations between objects.
A k-coloring of a graph G is an assignment of one
color to e a c h vertex of G such that no more than k
colors are used a nd no two adjacent vertices receive
the same color.
A graph is called k-colorable iff it has a k-coloring.
Chromatic
number
The chromatic number of a graph G is the smallest
number k such that G is k-colorable, a nd it is denoted by
χ(G).
Application
s
The problem of coloring a graph has several
applications such as scheduling, register allocation in
compilers, frequency assignment in Mobile radios, etc.
Terminolog
y
K-chromatic graph
A graph whose chromatic number is k is called a k-
chromatic graph.
Coloring
A coloring of a graph G assigns colors to the vertices
of G so that adjacent vertices are given different
colors
Exampl
e
A C
B B C
Example Auxiliary
Graph
A B
B
A E
E
D C
C D
A E
D C
Independent
Sets
An independent set of a graph G is a subset of the
vertices such that no two vertices in the subset
are connected by an e d g e of G.
α(G)=3
25
v1 G
G1
26
Remove
v1 and neighbors
N
(v 1 )
G1
27
N
Remove v 1 and neighbors
(v 1 )
G2
Phase
28
2:
Pick a node v2 an d a d d it to
I
G2
v2
29
N
Remove v 2 an d neighbors
(v2 )
G2
v2
30
N
Remove v 2 and neighbors
(v2 )
G3
Phases 3,4,5,
31
…:
Repeat until all nodes are removed
G3
Phases 3,4,5,
32
…,x:
Repeat until all nodes are removed
Gx 1
No remaining nodes
33