1 votes 1 votes Shiva draws a tree of N nodes, where a node can be adjacent to maximum of 4 other nodes. What is the minimum number of colors Shiva should use so that no two adjacent nodes get the same color? A. 5 B. 4 C. 3 D. 2 // Please explain how to solve this? Programming in C algorithms data-structures graph-coloring + – sh!va asked Jul 12, 2016 • recategorized Jul 6, 2022 by Lakshman Bhaiya sh!va 3.6k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 5 votes 5 votes The chromatic number of any tree is 2, unless the graph contains no edges, in which case its chromatic number is trivial. Let's Take a example for your question Here clearly We can see graph is 2-colorable. Hence,option(D)2 . LeenSharma answered Jul 12, 2016 • selected Jul 12, 2016 by sh!va LeenSharma comment Share Follow See all 0 reply Please log in or register to add a comment.