gallery/backgr2

Fastest Combination Enumeration Algorithm

 

If suppose that we have a set E = { a, b, c, d, e } with 5 elements(n=5), we want to choose 3 elements (r=3) from this set, then how many different ways can we choose 3 elements out of a set E with 5 different elements. Of course, nCr or 5C3 = 10, there are 10 different ways as below:

 

 

gallery/01
gallery/03
gallery/02

Combination Generator
or Eumerator