UNIT-3: Chromatic Number
UNIT-3: Chromatic Number
CHROMATIC NUMBER
Four Color Theorem (Appel, Hakel, 1976):
Every map can be colored with 4 colors.
Robertson, Sanders, Seymour, and Thomas gave a much simpler proof 1997
(still using a computer search).
Graph Coloring
A graph coloring is a coloring of the graph vertices such that the number of pairs
of adjacent vertices shares the same color.
Example
UNIT-3 1
UNIT-3 2
UNIT-3 3
UNIT-3 4
Bounds on the Chromatic Number
UNIT-3 5
UNIT-3 6
Applications
UNIT-3 7
Questions:
4. from brooks theorem, we know that any graph of degree delta can be colored in
delta + 1 colors. But is there a 5-regular graph that cannot be colored in 5
colors?
CHROMATIC PARTITIONING
A proper coloring of a graph naturally induces a partitioning of the vertices into
different subsets.
UNIT-3 8
chromatic partitioning = {v1, v4}, {v2}, and {v3, v5}
Independent set
A set of vertices in a graph is said to be an independent set of vertices or simply an
independent set (or an internally stable set) if no 2 vertices in the set are adjacent.
UNIT-3 9
UNIT-3 10
Independent sets are related to colorings
Each color in a valid coloring constitutes an independent set (but not necessarily
an MIS, and we must decide for which color to go beforehand, e.g., color 0!).
Choose all nodes of the first color. Then for any additional color, and in parallel
as many nodes as possible! (Exploit additional independent sets from coloring).
Example
UNIT-3 11
UNIT-3 12
UNIT-3 13
Independence number
The number of vertices in the largest independent set of graph G is called the
independence number (or the coefficient of internal stability.
UNIT-3 14
Chromatic polynomial
For a given graph G, the number of ways of coloring the vertices with x or fewer
colors is defined as P(G, x) and is called the chromatic polynomial of G (in terms of
x).
Examples:
P(G, x) = x(x-1)(x-2)(x-3)
P(G, x) = x * Math.pow(x-1, 5)
UNIT-3 15
P (In, x) = xn where In is the graph on n Isolated vertices (no edges, called the
empty graph)
Matching
In graph theory, matching in a graph is a set of edges that do not have a set of
common vertices. In order words, a matching is a graph where each node has either
zero or one edge incident to it.
Graph matching is not to be confused with graph isomorphism. Graph isomorphism
checks if two graphs are the same whereas matching is a particular subgraph of a
graph.
UNIT-3 16
can give each candidate a job they are qualified for. The graph below shows all of
the candidates and jobs and there is an edge between a candidate and each job
they are qualified for.
Is there a way to assign each person to a single job they are qualified for such that
every job has only one person assigned to it?
Maximal matching:
A matching, P, of the graph, G, is said to be maximal if no other edges of G can be
added to P because every node is matched to another node. In other words, if an
edge that is in G and is not in P is added to P, it would cause P to no longer be a
matching graph, as a node will have more than one edge incidence to it. P is also
maximal matching if it is not a proper subset of any other matching in G; if every
edge in G has a non-empty intersection with at least one edge in P. Note that the
maximal matching is not necessarily the subgraph that provides the maximum
number of matches within a graph.
UNIT-3 17
Maximal matchings shown by the subgraph of red
edges.
Maximum matching
A matching is a maximum matching if it is a matching that contains the largest
possible number of edges matching as many nodes as possible. Simply stated, a
maximum matching is the maximal matching with the maximum number of edges.
Every maximum matching is maximal, but not every maximal matching is a
maximum matching.
UNIT-3 18
Example of matching problem:
2.
UNIT-3 19
There is still no way to distribute the gifts to make everyone happy. In fact, notice
that four of the children, Alice, Charles, Danielle, and Edward, only want one of the
first three gifts, which makes it clear that the problem is impossible and one of them
will be stuck with a gift they will not enjoy.
It turns out, however, that this is the only way for the problem to be impossible. As
long as there isn't a subset of children that collectively like fewer gifts than there are
children in the subset, there will always be a way to give everyone something they
want. This is the crux of Hall's marriage theorem.
VERTEX COVER
Vertex cover sometimes called node cover, is a famous optimization problem that
uses matching. For a graph G = (V, E), a vertex is a set of vertices V' belongs to V
such that every edge in the graph has at least one endpoint that is in V'. Below are
two graphs and their vertex cover sets represented in red. Basically, a vertex cover
"covers" all of the edges.
the vertex cover above do not contain the minimum number of vertices
for a vertex cover.
Example:
An art museum is filled with famous paintings so security must be airtight. It is of
paramount importance to assure nobody can steal these expensive artworks, so the
security personnel must install security cameras to closely monitor every painting. To
determine where to place these cameras in the hallways so that all paintings are
guarded, security can look at a map of the museum and model it as a graph where
the hallways are the edges and the corners are the nodes. If there are five paintings
lined up along a single wall in a hallway with no turns, a single camera at the
beginning of the hall will guard all five paintings. This way, the security staff can
determine the vertex cover set to find out where to place the cameras.
To further improve upon the placement of cameras, the security staff can minimize
the number of cameras needed to protect the entire museum by implementing an
UNIT-3 20
algorithm called minimum vertex cover.
The vertex cover is not unique. Each set of vertices: blue, green, and red, form a
vertex cover.
A more theoretical concept relating to vertex cover is Konig's theorem that states
that for any bipartite graph, the maximum size of matching is equal to the minimum
size of vertex cover.
Question 1
Install the minimum number of antivirus system on computers to cover all
the network connections between them. A network connection between two
computers is covered if a computer at one of its endpoints has an
antivirus system.
UNIT-3 21
Question 2
UNIT-3 22
Question 3
Install the minimum number of antivirus system on computers to cover all
the network connections between them. A network connection between two
computers is covered if a computer at one of its endpoints has an
antivirus system.
UNIT-3 23
UNIT-3 24
Digraphs and binary relations
UNIT-3 25
UNIT-3 26
UNIT-3 27
Symmetric relation
UNIT-3 28
Reflexive relation
UNIT-3 29
Transitive relation
UNIT-3 30
UNIT-3 31
Equivalence relation
UNIT-3 32
UNIT-3 33
UNIT-3 34
UNIT-3 35