Question: colours so that for every pair ( u , v ) of adjacent vertices, ( u ) and ( v

colours so that for every pair \( u, v \) of adjacent vertices, \( u \) and \( v \) are assigned different colours.
The \(\quad \) of a graph \( G \), denoted by \(\chi(G)\), is the smallest integer \( k \) for which graph \( G \) is \( k \)-colorable. To show that \(\chi(G)=k \), you must show that the graph is \( k \)-colourable and that the graph is not \((k-1)\)-colourable.
Q4.1
5 Points
Let \( G \) be the graph below, with 11 vertices and 20 edges. Clearly explain why \(\chi(G)=4\).
Directions: You can choose to show it visually or write it in words.
Q4.2
5 Points
Create a simple greedy algorithm for colouring the vertices of any graph \( G \), ideally using as few colours as possible. Explain how your algorithm works, i.e., the order in which your algorithm chooses the vertices of a given graph, and how a colour is assigned to each vertex.
Directions: You need to provide the greedy criteria, algorithm/pseudocode, and the correct runtime analysis of your algorithm.
Q4.3
5 Points
For any graph \( G \), does your algorithm always use exactly \(\chi(G)\) colours? If so, explain why. If not, provide a graph \( G \) for which your algorithm requires more than \(\chi(G)\) colours.
Directions - You need to provide a proof of correctness if your algorithm gives the correct chromatic number in all the cases. Otherwise, just a counter example is enough.
Q4.4
5 Points
The problem of determining whether an arbitrary graph has chromatic number \( k \), where \( k \geq 3\) is a very hard problem (this problems falls under \( N P-\) Complete and means there does not currently exists an efficient algorithm for solving the problem). However, determining whether an arbitrary graph has chromatic number \(\mathbf{2}\) is much easier (there does exist efficient algorithms to do so, we say that they fall under \(\mathbf{P}\)).
Given a graph \( G \) on \( n \) vertices, create an algorithm that will return TRUE if \(\chi(G)=2\) and FALSE if \(\chi(G)
eq 2\). Clearly explain how your algorithm works, why it guarantees the correct output, and determine the running time of your algorithm.
Direction: Please don't make any unnecessary assumptions regarding the Graph. An ideal answer should have Algorithm/Pseudocode with a correct return/print statement, correctness, and runtime of your algorithm.
colours so that for every pair \ ( u , v \ ) of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!