1 votes 1 votes Consider a tree with $n$ nodes where a node can be adjacent to max $4$ other nodes what is the minimum number of colors needed to color the tree so that no two adjacent nodes get the same color? Algorithms algorithms graph-coloring tree-coloring virtual-gate-test-series + – kunalv asked Sep 10, 2017 • edited Apr 2, 2019 by Lakshman Bhaiya kunalv 355 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Rishabh Gupta 2 commented Sep 10, 2017 reply Follow Share Since the given graph is a tree, we can color it in 2 colors. Just try drawing it, with 4 children each, you will get the idea. 0 votes 0 votes joshi_nitish commented Sep 10, 2017 reply Follow Share any graph which does not contains odd length cycle can be colored with <=2 colors, tree satisfies this property –1 votes –1 votes BASANT KUMAR commented Jul 8, 2019 reply Follow Share we can use chromatic number=1+$d_{max}$(where $d_{max}$ is maximum degree of a vertex). 0 votes 0 votes Please log in or register to add a comment.