Asked By : Abhijith Madhav
Answered By : Abhijith Madhav
You must remember that the vertices diagonal from one another can be colored the same
and also obtain the chromatic polynomial by adjusting for my wrong reasoning. I had initially figured that there are $lambda – 2$ ways of picking colors for C. The “-2” accounted for the colors being different from that of B and D. What I did not think about is that B and D can have the same colors in which case there would be just $lambda – 1$ way of picking colors for C. Thus $P(ABCD, lambda)$ = Number of ways of properly coloring ABCD when B and D are of the same color + Number of ways of properly coloring ABCD when B and D are colored differently
= $λ(λ−1)(1)(λ−1) + λ(λ−1)(λ−2)(λ−2)$
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/4758