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.
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.
Copyright © 2021 JogjaFile Inc.
UPDATED following a suggestion in the comments.
Both (1) and (2) are doable in polynomial time (how?) so this is in $P$