SOURCE SET (N = 5 items)

A
B
C
D
E

SLOT MATHEMATICS ANALYSIS

Permutations (Order Matters, nPr):
Pos 15options
ร—
Pos 24options
ร—
Pos 33options
=
60 arrangements
Combinations (Order Ignored, nCr = nPr รท r!):
Permutations60ordered
รท
Item 11
ร—
Item 22
ร—
Item 33
Redundancy Factor (R! = 6)
=
10 unique subsets

Combinations (10) Order Ignored โ€ข Hover to Highlight Permutations

{A, B, C}
{A, B, D}
{A, B, E}
{A, C, D}
{A, C, E}
{A, D, E}
{B, C, D}
{B, C, E}
{B, D, E}
{C, D, E}

Permutations (60) Order Matters โ€ข Highlighted on Selection

ABC
ABD
ABE
ACB
ACD
ACE
ADB
ADC
ADE
AEB
AEC
AED
BAC
BAD
BAE
BCA
BCD
BCE
BDA
BDC
BDE
BEA
BEC
BED
CAB
CAD
CAE
CBA
CBD
CBE
CDA
CDB
CDE
CEA
CEB
CED
DAB
DAC
DAE
DBA
DBC
DBE
DCA
DCB
DCE
DEA
DEB
DEC
EAB
EAC
EAD
EBA
EBC
EBD
ECA
ECB
ECD
EDA
EDB
EDC

Arrangement Metrics

Adjust the variables N and R. Notice how selecting fewer items reduces both counts, and how permutations grow much faster than combinations due to factorial scaling ($R!$).

Total Permutations60
Total Combinations10
Order Redundancy Factor (R!):6
For every combination, there are $r! = 6$ ways to arrange it. Dividing total permutations by $r!$ gives combinations.

Variable Adjuster

Total Items (n)5
18
Selected Items (r)3
15

Permutations & Combinations Explorer

PERM

Permutations (order matters) represent sequential arrangements of items, where switching sequence creates a new outcome. Combinations (order does not matter) represent subset groupings, where arrangements of the same items collapse into a single set.

nPr=n!(nโˆ’r)!vsnCr=n!r!(nโˆ’r)!_nP_r = \frac{n!}{(n-r)!} \quad \text{vs} \quad _nC_r = \frac{n!}{r!(n-r)!}

Whiteboard Solver Steps

Step 1

Step 1: Compute Factorials

Factorial (n!n!) represents the number of ways to arrange nn items. We calculate factorials for the total elements (nn), selected elements (rr), and remaining elements ((nโˆ’r)(n-r)) to serve as building blocks for our formulas.

n!=5!=120,r!=3!=6,(nโˆ’r)!=(5โˆ’3)!=2n! = 5! = 120, \quad r! = 3! = 6, \quad (n-r)! = (5-3)! = 2
Step 2

Step 2: Permutations (Order Matters)

Permutation describes arrangement where sequence order is critical (e.g. passcodes). Using the slot method, we fill r=3r = 3 positions one-by-one: \text{Slots} = 5 \times 4 \times 3 = 60

nPr=n!(nโˆ’r)!=1202=60_nP_r = \frac{n!}{(n-r)!} = \frac{120}{2} = 60
Step 3

Step 3: Combinations (Order Does Not Matter)

Combination describes subset groupings where sequence order is ignored (e.g. lottery balls). Because ordering is irrelevant, we divide the total permutations (nPr^nP_r) by the redundancy factor (r!=6r! = 6), collapsing arrangements like ABC and CBA into a single unique set.

nCr=n!r!(nโˆ’r)!=nPrr!=603!=10_nC_r = \frac{n!}{r!(n-r)!} = \frac{_nP_r}{r!} = \frac{60}{3!} = 10
Step 4

Step 4: Machine Learning & Coding Applications

Where it is used: - Feature Selection: Finding optimal subsets of input features (kk features selected from dd total features) uses combinations to size search spaces. - Hyperparameter Grid Search: Testing configurations of parameter combinations. - Network Architectures: Fully connected layers or connection graphs sizing.

(nr)โ€…โ€ŠโŸนโ€…โ€ŠHyperparameter Tuning, Feature Combinations\binom{n}{r} \implies \text{Hyperparameter Tuning, Feature Combinations}