有關排列組合的運算式
排列組合有P C H 等運算
這是C的運算喔
例如:C(9,6)=84
/* ------------------------------------------------------ */
/* FUNCTION cnr : */
/* Given unsigned integers n and r, this function */
/* computes C(n,r), the Binomial Coefficient of n and r */
/* by using addition operation only. The method used */
/* calculates C(n,r) with exactly (n-1)*(r-1) additions */
/* and this is fewer than many known techniques. ..
訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容