(Assume tree nodes are labeled from A to G in inorder manner)
The group elements in cycle notation are:
e
(D)(BF)(AE)(CG)
(D)(B)(F)(AC)(EG)
(D)(B)(F)(A)(C)(EG)
(D)(BF)(AG)(CE)
(D)(BF)(AGCE)
(D)(BF)(AECG)
Let X = Set of all possible essentially different processor assignments for the nodes
|X| = 1/|G| x Sum of the sizes of all fixes of G.
= 513
p(x) is the generating function for the sequence S
For example, consider the permutation group in the problem above. The cycle index for this group would be.
I = 1/|G|( x17 + 2.x15.x2 + x13.x22 + 2.x1.x23 + 2.x1.x2.x4)
The number of k colorings for this group can now be easily computed using the cycle index.
# of k colorings of group G = IG(k).
Let S = the set of good solutions
x' = (x1, x2, x3, x4)
V(x') = x1 + x2 + x3 + x4
S* = { x': V(x') = n}
|S*| = (n-1) choose 3
Sj = {x': xj > k}
Good solutions = Total solutions - bad solutions
S = S* - (S1 U S2 U S3 U S4)
| S1 U S2 U S3 U S4| = Sum(from i=1 to 4) (-1)i+1. (4 choose i) | Intersection of S1 through Si |
| Intersection of S1 through Si |
= (n-4-ki+3) choose (n-4-ki) = (n-4-ki)
choose 3.