Show that the 3-color problem is in P when the input graph is a tree.

209 Views Asked by At

This one is from university assignment. I am completely stuck on this one and I searched the internet but couldn't find a explanation.

Show that the 3-color problem is in P when the input graph is a tree.

Any explanation would be appreciated.

1

There are 1 best solutions below

7
On BEST ANSWER

UPDATED following a suggestion in the comments.

  1. Validate that the input is a tree
  2. Answer "yes"

Both (1) and (2) are doable in polynomial time (how?) so this is in $P$