Can we colour a graph in 3 colours in polynomial time? I read that colouring a graph with 2
colours is easy,but colouring a graph with 3 different colours(No two vertices have the
same color) is np-hard.However,I wonder if there is a magic box that says 'yes' for 'A
graph being 3-colourable in polynomial time?'.If it says 'yes' how would it solve it in
polynomial time? Any Ideas ?
Add 3 new vertices to your graph called red/green/blue, each connected to the other 2 but nothing else.
Then for each vertex in your graph:
At the end of this process you will have identified a colour for each vertex (the colour that it is not connected to).
This is O(N*magic) where magic is the complexity of your magic box.