Combinatorics

nCr : "from n choose r"

n = length of possibility set (ex. 5 letters)
r = length of combination set (ex. pick 2)



Permutation with Repetition

Order matters and elements of the possibility set can be repeated.

nr

abcde
aaaabacadae
bbabbbcbdbe
ccacbcccdce
ddadbdcddde
eeaebecedee


Permutation without Repetition

Order still matters, but elements cannot be repeated.

n!
(n-r)!

abcde
aabacadae
bbabcbdbe
ccacbcdce
ddadbdcde
eeaebeced


Combination without Repetition

Order does not matter, and elements cannot be repeated.

n!
r!(n-r)!

abcde
aabacadae
bbcbdbe
ccdce
dde
e


Combination with Repetition

Order does not matter, but elements can be repeated.

(n+r-1)!
r!(n-1)!

abcde
aaaabacadae
bbbbcbdbe
ccccdce
dddde
eee

No comments:

Post a Comment