MHB Solving Decision Problem with k Colors - NP-Complete

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Decision
AI Thread Summary
The discussion revolves around formulating a decision problem for graph coloring using at most k colors and establishing its NP-completeness. The initial proposal for the decision problem is whether a coloring exists with k colors, which is confirmed to be correct. It is established that the problem is in NP since a non-deterministic Turing machine can guess the color assignments and verify them in linear time relative to the number of edges. The conversation shifts to the completeness aspect, clarifying that while the task was to show the problem is in NP, the participant mistakenly asserted it was NP-complete without proper justification. The correct approach involves discussing the reduction from 3SAT to 3-coloring, although the details of this reduction remain unclear.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
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.
 
Technology news on Phys.org
This seems OK. There is still the completeness part missing.
 
Evgeny.Makarov said:
This seems OK.

(Happy)

Evgeny.Makarov said:
There is still the completeness part missing.

Oh, I am sorry.. we had just to prove that it is in NP, not that it is NP-complete.Then the exercise required to explain, but not to prove if 3-coloring is NP-complete.

I wrote that it is NP-complete, because it can be reduced to the 3SAT problem, which is known to be NP-complete. Do you think that it is enough? (Thinking)
 
evinda said:
Then the exercise required to explain, but not to prove if 3-coloring is NP-complete.

I wrote that it is NP-complete, because it can be reduced to the 3SAT problem, which is known to be NP-complete.
Reducing 3-coloring to 3SAT does not help in any way.
 
Evgeny.Makarov said:
Reducing 3-coloring to 3SAT does not help in any way.

Oh yes, right... (Tmi)
We could say that we can reduce 3SAT to 3-coloring, right?
 
Yes. I don't know the details of the reduction, though.
 
Evgeny.Makarov said:
Yes. I don't know the details of the reduction, though.

Ok, no problem... (Smile)

Thanks a lot for your answer! (Happy)
 

Similar threads

Replies
1
Views
3K
Replies
14
Views
4K
Replies
1
Views
2K
Replies
17
Views
4K
Replies
6
Views
2K
Back
Top