- #1
evinda
Gold Member
MHB
- 3,836
- 0
Hello! (Wave)
I had a test today and a question was to make a decision problem for the coloring using at most $k$ colors and to show that this problem is NP-complete.
Is the following right?
Decision problem: Is there a coloring with $k$ colors?
Also could we show that the problem is in NP as follows?
A non-deterministic Turning machine first guesses the nodes that are colored with each of the $k$ colors and then it verifies in $\Theta(E)$ time that each adjacent nodes of the graph have a different colour.
Thus the problem is in NP.
I had a test today and a question was to make a decision problem for the coloring using at most $k$ colors and to show that this problem is NP-complete.
Is the following right?
Decision problem: Is there a coloring with $k$ colors?
Also could we show that the problem is in NP as follows?
A non-deterministic Turning machine first guesses the nodes that are colored with each of the $k$ colors and then it verifies in $\Theta(E)$ time that each adjacent nodes of the graph have a different colour.
Thus the problem is in NP.