 N じ栋い
┮Τ m じ栋

 N じ栋い m じ栋Τ C(N,m) 

ㄒN = 5, m = 3 栋じ安砞 {0, 1, 2, 3, 4}

妓糶 C 祘Αㄓ硂ㄇ栋㎡?

иノ摸计计よΑㄓт┮Τ m じ栋

祘Α璶―

  1. 硂祘Α瞶阶ノ患癹 (recursive) ㄓ暗 ┪琌р┮Τ栋ㄓ 礛縵浪 m じ栋 琌煤ユ穨 叫叭ゲㄌ酚秆睦よ猭ㄓ暗

  2. 叫鲸秖ノㄧΑㄓ虏て呸胯 磅︽硉既ぃノび種 讽礛癚阶ぃ N 阀惠璶ぶ丁

  3. 惠璶ノ皚跑计ㄓ癘魁计

  4. 叫 ANSI C 粂猭のㄧΑ畐ㄓ籹

絛ㄒ磅︽祘Α

    Iterated Version [FindCombinationsIter.exe]Recursive Version [FindCombinationsRecur.exe]

祘Α砞璸揭祘 

籹ら戳: 99/10/19 by 蚌驾 (Pei-yih Ting)
E-mail: pyting@cs.ntou.edu.tw