CUET PG 2021 — Computer PYQ
CUET PG | Computer | 2021The number of different binary trees with 6 nodes is
Choose the correct answer:
- A.
6
- B.
42
- C.
132
(Correct Answer) - D.
256
132
Explanation
1. The Catalan Equation
The number of distinct binary trees T with n nodes is given by the nth Catalan number:
T(n)=Cn=n+11(n2n)
Alternatively, it can be written as:
Cn=(n+1)!n!(2n)!
2. Step-by-Step Calculation for n=6
Substitute n=6 into the formula:
C6=6+11(62×6)
C6=71(612)
Calculating the Binomial Coefficient (612):
(612)=6×5×4×3×2×112×11×10×9×8×7
(612)=924
Final Calculation:
C6=7924
C6=132
Explanation
1. The Catalan Equation
The number of distinct binary trees T with n nodes is given by the nth Catalan number:
T(n)=Cn=n+11(n2n)
Alternatively, it can be written as:
Cn=(n+1)!n!(2n)!
2. Step-by-Step Calculation for n=6
Substitute n=6 into the formula:
C6=6+11(62×6)
C6=71(612)
Calculating the Binomial Coefficient (612):
(612)=6×5×4×3×2×112×11×10×9×8×7
(612)=924
Final Calculation:
C6=7924
C6=132

