1.I just understood by calculating one binomial coefficient example step by step. but when it comes to pseudo code, I am a little bit confused. especially this part for(j=minimum(i,k); j>=0; j--).
and what else I understood is that n is the size of column, and k is the size of row. I want to know if I understood right or not.
int bin2(int n, int k)
{
index i, j;
int B[0...k];
for(i = 0;i <= n; i++)
{
for(j = minimum(i, k); j >= 0; j--)
{
if(j == 0 || j == i)
B[j]=1;
else
B[j] = B[j - 1] + B[j];
}
}
return B[n][k];
}