recategorized by
905 views
4 4 votes

A graph $G=(V, E)$ is said to be $k$-colourable if the set $V$ of vertices can be coloured with $k$ colours such that no edge has both its endpoints of the same colour. It is known that the following language $\text{3COL}$ is $\text{NP}$-complete.
\[
3 \mathrm{COL}=\{G \mid G \text { is 3-colourable }\} .
\]
Consider the following algorithmic problems (assume that the input graph $G$ is provided as its adjacency matrix):

$\text{(P1)}$ Given a graph $G$ as input, check if $G$ is $2$-colourable.
$\text{(P2)}$ Given a graph $G$ as input, find the minimum value of $k$ such that $G$ is $k$-colourable.
$\text{(P3)}$ Given a graph $G$, check if $G$ is $3$-colourable.
$\text{(P4)}$ Given a graph $G$, along with a guarantee that the minimum value of $k$ such that $G$ is $k$-colourable is either $2$ or $3,$ decide which of the two is the case.

Assume $\mathrm{NP} \neq \mathrm{P}$. Then, which of the above problems can be solved in polynomial time?

  1. Only problem $\text{(P1)}$
  2. Only problems $\text{(P1)}$ and $\text{(P4)}$
  3. Only problems $\text{(P2)}$ and $\text{(P3)}$
  4. Only problems $\text{(P1), (P3)}$and $\text{(P4)}$
  5. Only problems $\text{(P1), (P2)}$and $\text{(P4)}$

1 Answer

3 3 votes

$\textbf{(P1):}$ Given a graph $G$, check if $G$ is 2-colourable.

A graph will be 2-colourable $\iff$ it is bipartite.

We can test bipartiteness in polynomial time using BFS.

So $\textbf{(P1)}$ is solvable in polynomial time.

Algorithm

 


$\textbf{(P2):}$ Given a graph $G$, find the minimum $k$ such that $G$ is $k$-colourable.

If we could solve this in polynomial time, we could decide 3-colourability by checking whether $\chi(G) \le 3$ which just contradicts the assumption $\text{P} \ne \text{NP}$.

So $\textbf{(P2)}$ is not solvable in polynomial time.

 


$\textbf{(P3):}$ Given a graph $G$, check if $G$ is 3-colourable.

This is the $3\text{-COL}$ problem, which is NP-complete.

So $\textbf{(P3)}$ is not solvable in polynomial time.

 


$\text{(P4)}$ Given a graph $G$, along with a guarantee that the minimum value of $k$ such that $G$ is $k$-colourable is either $2$ or $3$, decide which of the two is the case.

We can apply a simple algorithm to solve this problem:

Check if $G$ is $2$-colourable.which is decidable in polynomial time 
If $G$ is $2$-colourable $\Rightarrow$ $\chi(G) = 2$
If $G$ is not $2$-colourable and since $\chi(G)$ is either $2$ or $3$, it must be $3$.


So $\textbf{(P4)}$ is solvable in polynomial time.



\[
\boxed{\text{B. Only problems (P1) and (P4)}}
\]

 

Answer:
Position:
Show:

Related questions

2 2 votes
1 1 answer
1.1k
1.1k views
admin asked Mar 14, 2023
1,117 views
You have a regular tetrahedron and $4$ distinct colours. You wish to paint the faces of the tetrahedron such that each face gets a different colour. How many ways can you...
1 1 vote
1 1 answer
744
744 views
admin asked Sep 1, 2022
744 views
Given an undirected graph $G$, an ordering $\sigma$ of its vertices is called a perfect ordering if for every vertex $v$, the neighbours of $v$ which precede $v$ in $\sig...
2 2 votes
0 0 answers
622
622 views
admin asked Mar 14, 2023
622 views
A $k$-term $T=\ell_{1} \wedge \ell_{2} \wedge \cdots \wedge \ell_{r}$ is defined to be a conjunction of at most $k$ literals, where each literal $\ell_{i}$ is a Boolean v...
8 8 votes
2 2 answers
1.2k
1.2k views
admin asked Mar 14, 2023
1,235 views
A $d$-regular graph is one in which every vertex has degree $d$. Also, a minimum cut in a graph is a smallest set of edges which, upon removal, disconnects the graph, so ...