Let G = (V, E) be a graph. Define xi(G) = sum_d (i_d * d), where i_d is the number of vertices of degree d in G. If S and T are two different trees with xi(S) = xi(T), then A. |S| = 2|T| B. |S| = |T| - 1 C. |S| = |T| D. |S| = |T| + 1
GATE 2010 · Discrete Mathematics · Degree of Graph · medium
Answer: |S| = |T| (Option C)
- xi is just the degree sum: counting each vertex deg(v) times is the same as adding all degrees, which is 2|E|
- Use the tree edge count and equate: xi(S) = xi(T) => 2(|S|-1) = 2(|T|-1) => |S| = |T|