Graph Theory Induction proof Prove that if T is a tree, then the chromatic color of T is 2 or less, (Hint-use induction on P, the number of vertices of T) Defns- Tree is a graph with no cycles Chromatic color is the least number of colors the vertices can be colored so that no 2 adjacent vertices share the same color I dont understand what they mean by induction on P, what will the induction statement look like? side note they dont want you to use the theorem where every tree is a bipartite graph,
Inducting on P means, you need to show that the statement is true for all \(P\in \mathbb{N}\).
1) Show that the statement is true for \(P=1\) 2) Show that the statemetn is true for \(P=k+1\) whenever the statement is true for \(P=k\)
hm
why not simply take base case as \(P=1\)
that doesnt have diameter 3
what diameter
oops ignore that im mixing up questions now
okay p=1
my mind is filled with currently solving another question, and now im taking a look at this, it somehow intertwined both questions into 1 lol
Intuitively, atleast it is easy to see that you can paint all `level1` vertices with `color1`, then `level2` vertices with `color2` then `level3` vertices with `color1` etc... since the graph is a tree, there wont be any cycles to join odd and even levels
so any tree with P>1 is 2-chromatic
|dw:1442977242648:dw|
i feel like this induction is not complete
thats not induction, just showing it for convincing ourselves first
so i said X(T_1)<=1 To show if \[X(T_P)<=2\], then \[X(T_{p+1})\] any new vertex can be added so that its set to the color not equal to the vertex its joined to, i feel like this doesnt complete the proof that any T is less than or equal to 2 chromatic color, because we havent shown this to be true for all other non isomoprhic trees with p vertices
For an induction proof : base case : for \(P=1\), just color the vertex with `color1`, so the statement checks out Induction hypothesis : assume we can color a tree with vertices \(P=k\) Induction step : Consider a tree with vertices \(P=k+1\) and remove any one vertex; the rest of the graph is still a tree; which is \(2\) chromatic from induction hypothesis. Simply connect back the removed vertex and color it with color different from its adjacent vertex. \(\blacksquare\)
nvm i guess its fine ill just state that the statement if X(T_p) <=2 for all non-isomorphic trees of T_p
Keep in mind, particularly here, the induction fails miserably if you start with P=k and add a vertex. You must always start the induction step with P=k+1.
okay i see what u mean
so i just gotta say that we remove a vertex and we are in T_n case then we re add vertex with new color not equal to adj vertex
Yes, but it doesn't work exactly... we still need to tweak a bit.. let me give u an example where it fails
|dw:1442978241263:dw|
suppose you remove the vertex \(A\), then color the rest of tree what color does the vertex \(A\) gets when you stitch it back ?
oh i see if we remove A then we cant use that argument
yeah there should be a better way to approach this... this removing and adding thingy may not work
i can do 2 cases
either you have a vertex connected to multiple vertices or you have a vertex connected to just 1 vertex
i think it might get messy..
ya theres gotta be a better way
theres no way ill be able to argue that the vertex i removed has to be connected to all all of vertices of the same color just because its a Tn graph now
oh wait i can!
nvm i cant
|dw:1442978612649:dw|
Join our real-time social learning platform and learn together with your friends!