| Algorithms |
| Binomial Coefficients |
Wikipedia
"In mathematics, any of the positive integers that occurs as a
coefficient in the binomial theorem is a binomial coefficient.
Commonly, a binomial coefficient is indexed by a pair of integers
n ≥ k ≥ 0 and is written .It is the coefficient of the xk
term in the polynomial expansion of the binomial power (1 + x)n,
and it is given by the formula
Arranging binomial coefficients into rows for successive values
of n, and in which k ranges from 0 to n, gives a triangular array
called Pascal's triangle.
As with the Fibonacci numbers, the binomial coefficients can be
calculated recursively - making use of the relation:
If we construct Pascal's triangle, the nth
row gives all the values,
nCm, m = 0,n:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
|
| Continue on to Optimal Binary Search Trees |