-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpermcomb.txt
More file actions
71 lines (45 loc) · 1.81 KB
/
Copy pathpermcomb.txt
File metadata and controls
71 lines (45 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
## Meaning
- Permutation comes from Latin "permutare", meaning to change thoroughly ("per" = thoroughly, "mutare" = to change).
→ So permutations are about changing the order — the different arrangements matter.
- Combination comes from Latin "combinare", meaning to join together ("com" = together, "bini" = two by two).
→ So combinations are about joining together, not worrying about the order — just grouping.
## Summary by meaning
Permutation → changing order (order matters)
Combination → joining together (order doesn't matter)
## Simple example:
Suppose we have **3 people** — **Alice (A)**, **Bob (B)**, and **Charlie (C)**.
---
### Combinations (Order **Doesn't** Matter)
You are **picking 2 people** to form a committee.
Possible groups:
- A and B
- A and C
- B and C
> (Picking A then B is **the same** as picking B then A.)
**Total combinations**: 3 groups
---
### Permutations (Order **Matters**)
You are **picking a president and a vice president**.
Possible ordered pairs:
- A then B
- A then C
- B then A
- B then C
- C then A
- C then B
> (A then B is **different** from B then A.)
**Total permutations**: 6 arrangements
---
### Quick Visual Table
| Picking 2 people | **Combination** | **Permutation** |
|:-----------------|:------------------------|:----------------|
| A and B | Same | A then B |
| B and A | Same as A and B | B then A |
| A and C | Same | A then C |
| C and A | Same as A and C | C then A |
| B and C | Same | B then C |
| C and B | Same as B and C | C then B |
---
### Key Difference
- **Combinations** → Group matters, **order doesn't**
- **Permutations** → **Order matters**