Question: 5 . A ( k ) - coloring of a graph ( G = ( V , E ) ) is
A k coloring of a graph GV E is a mapping f: V rightarrowcdots k That is the mapping f associates with each node in V a number from ldots k Different nodes may map to different numbers or the same number. The restriction is that adjacent vertices that is vertices with an edge between them are mapped to different numbers. That is no two neighbors in G receive the same number.
We typically refer to the numbers as colors. For example, the number might be the color "red". Distinct numbers meant distinct colors. This usage is because the first applications of this problem were in map coloring. Consider, for example, a map of a country. Each state in the country would be a node in a graph, and nodes representing states that shared a border would have an edge between them be adjacent on the graph. One could then look for an f as defined above, to find a map coloring. Each number will refer to the color for the corresponding state, so that two neighboring states do not have the same color.
We will refer to the numbers as colors. Answer parts ae below.
a In parts iii and iv show that the given value of k is the minimum value of k such that the graph is k colorable. As always, explanations are required: you should argue that the graph can be colored with k colors by showing how each node would be colored, and you should also argue that it cannot be colored with fewer colors. As an example, see iii which is solved below
i points The empty graph with n nodes. k
ii points The star with n nodes, n geq A star is a graph with a single node the hub adjacent to all others; all nodes that are not the hub are adjacent only to the hub and no other node. k
iii. The clique with n nodes. A clique is another name for the complete graph. kn
Solution: Each node will have a distinct color. For n nodes, there are n colors and thus we have shown that the clique with n nodes can be colored with n colors. Suppose we use fewer than n colors. Then there will be at least nodes with the same color by the pigeonhole principle Because the graph is a complete graph, there is an edge between each pair of nodes, and these nodes have an edge between them. By the definition of a coloring, they cannot have the same color. Hence it is not possible to color the clique with n nodes using fewer than n colors. Thus kn is the minimum number of colors required to color the clique with n nodes.
iv points A cycle with n nodes. A cycle is another name for what the text book refers to as a simple circuit: a trail which ends and begins at the same node and has no other repeated node. k if n is even and k if n is odd.
b Define DeltaGmax dvmid v in VG ieDeltaG denotes the maximum degree of G where the degree dv of v denotes the number of edges adjacent to v Consider the following greedy algorithm to assign a color to each vertex and then answer parts i and ii
For icdots n do
Color vertex vi using the smallest available color in cdots k
i points Given any graph G prove that the above greedy algorithm colors the vertices of G with at most kDeltaG colors.
ii points Give an example of a graph G that requires DeltaG colors.
c points A bipartite graph is another name for a colorable graph. Show that a graph is bipartite if and only if it contains no odd cycle.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
