Permutations and combinations
แนะนำใหม่
11:37
ความน่าจะเป็นและสถิติ 1
โยนลูกเต๋าหนึ่งลูก ผลลัพธ์จะเป็นอย่างไรก็ตาม แต่โยนมันนับพันครั้ง หรือวัดความสูงของมนุษย์นับพันคน และสิ่งน่าประหลาดใจบางอย่าง…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| permutation/ˌpɜːmjuːˈteɪʃn/ | การจัดเรียง |
| combination/ˌkɒmbɪˈneɪʃn/ | การจัดกลุ่ม |
| multiplication principle/ˌmʌltɪplɪˈkeɪʃn ˈprɪnsɪpl/ | หลักการคูณ |
| arrangements | |
| factorial/fækˈtɔːrɪəl/ | แฟกทอเรียล |
จำนวนวิธีการจัดวางหนังสือในชั้นหนังสือ?
- คุณมี 10 เล่มหนังสือ และต้องการเลือก 3 เล่มมาจัดแสดง มีกี่วิธี? หากลำดับมีความสำคัญ จะเรียกว่า การจัดเรียง (permutation) แต่ถ้าคุณแค่ต้องการเลือก 3 ใดๆ ก็ตาม จะเรียกว่า การเลือก (combination)
- เทคนิคการนับเป็นรากฐานของความน่าจะเป็น — และปรากฏได้ทุกที่ ตั้งแต่โอกาสรับรางวัลสลากกินแบ่งไปจนถึงความปลอดภัยรหัสผ่าน
Permutation or combination lab
Choose whether order matters in a counting problem.
การเรียงสับเปลี่ยน (ลำดับมีความสำคัญ)
- การจัดเรียง คือการจัดวางที่ ลำดับสำคัญ: ${}^nP_r = \dfrac{n!}{(n-r)!}$.
- ตัวอย่าง: จัดหนังสือ 3 เล่มจาก 10 เล่ม: ${}^{10}P_3 = \dfrac{10!}{7!} = 10 \times 9 \times 8 = 720$.
ตัวอย่างวิธีทำ. สามารถสร้างรหัส 3 ตัวอักษรจาก 26 ตัวอักษรได้กี่รูปแบบ (ห้ามซ้ำ)? ${}^{26}P_3 = 26 \times 25 \times 24 = 15\,600$.

การจัดเรียง: หนังสือ 3 เล่มจัดได้ 3 × 2 × 1 = 6 รูปแบบ

You have 3 shirts and 4 trousers. How many outfits can you make?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
3 × 4 = 12 outfits (multiplication principle).
การจับคู่ (ลำดับไม่สำคัญ)
- การจับคู่ คือการเลือกที่ ลำดับไม่สำคัญ: ${}^nC_r = \dbinom{n}{r} = \dfrac{n!}{r!\,(n-r)!}$.
- ตัวอย่าง: เลือกหนังสือ 3 เล่มจาก 10 เล่ม: ${}^{10}C_3 = \dfrac{10!}{3!\,7!} = \dfrac{720}{6} = 120$.
การจัดเรียงกับการจับคู่. การเลือกคณะกรรมการ 3 คนจาก 10 คน เป็นการจับคู่ (ลำดับไม่สำคัญ) การเลือกประธาน รองประธาน และเลขาธิการ จาก 10 คน เป็นการจัดเรียง (ลำดับสำคัญ — ตำแหน่งต่างกัน)

ลำดับสำคัญสำหรับการจัดเรียง แต่ไม่สำคัญสำหรับการจับคู่

In a combination, the order of the chosen items:
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Combinations ignore order; permutations count order.
How many ways to arrange 3 books from 10 on a shelf (¹⁰P₃)?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
¹⁰P₃ = 10!/(10-3)! = 10!/7! = 10 × 9 × 8 = 720.
การจัดวางที่มีตัวซ้ำ
- เพื่อจัดคำที่มีตัวอักษรซ้ำ ให้หารด้วยแฟกทอเรียลของแต่ละจำนวนครั้งที่ซ้ำ
- ตัวอย่าง: NEEDLESS มี 8 ตัวอักษร ที่มี E ซ้ำ 3 ตัว และ S ซ้ำ 2 ตัว: จำนวนการจัด $= \dfrac{8!}{3!\,2!} = \dfrac{40320}{12} = 3360$.

How many ways are there to choose 2 from 5 (⁵C₂)?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
⁵C₂ = 5!/(2!3!) = 120/(2×6) = 10.
⁵P₃ is greater than ⁵C₃.
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
⁵P₃ = 60 (order matters), ⁵C₃ = 10 (order doesn't). Permutations always ≥ combinations.
From 8 distinct letters, how many ordered pairs and how many unordered pairs can be chosen?
8 times 7 is 56, and each unordered pair has been counted twice.
หลักการคูณ
- ถ้าทางเลือกหนึ่งสามารถทำได้ใน $m$ วิธี และอีกทางเลือกหนึ่งทำได้ใน $n$ วิธี เมื่อทำทั้งสองอย่างร่วมกันจะได้ทั้งหมด $m \times n$ วิธี
- ตัวอย่าง: เสื้อ 3 ตัว และกางเกง 4 ตัว → $3 \times 4 = 12$ ชุด
How many arrangements of the letters of NEEDLESS? (8 letters: E×3, S×2 → 8!/(3!2!))
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
8!/(3!2!) = 40320/(6×2) = 40320/12 = 3360.
คุณเข้าใจแล้ว
- การจัดเรียง (ลำดับสำคัญ): ${}^nP_r = \dfrac{n!}{(n-r)!}$
- การจับคู่ (ลำดับไม่สำคัญ): ${}^nC_r = \dfrac{n!}{r!(n-r)!}$
- ตัวอักษรซ้ำ: หาร $n!$ ด้วยแฟกทอเรียลของแต่ละตัวซ้ำ (NEEDLESS → $\dfrac{8!}{3!\,2!}$)
เขียนจากการเรียงสับเปลี่ยน 56 และการจัดหมู่ 28
- มีตัวอักษรที่แตกต่างกัน 8 ตัว และมี 2 ตัวถูกเลือก
- หาจำนวนการจัดเรียงและจำนวนการเลือก

6 friends stand in a row. In how many ways can they stand if Ana and Ben must be next to each other?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Glue Ana and Ben: 5 blocks give 5! = 120, and the pair can swap: 120 × 2 = 240.
In how many ways can the 6 friends stand if Ana and Ben must NOT be next to each other?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Total 6! = 720, minus 240 together = 480.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Selections with conditions
- Split into cases, find each with the multiplication principle 乘法原理, then add the cases.
- A team of 5 from 6 men and 4 women, with at least 2 women:
| Women | Men | Ways |
|---|---|---|
| 2 | 3 | $\binom42\binom63=120$ |
| 3 | 2 | $\binom43\binom62=60$ |
| 4 | 1 | $\binom44\binom61=6$ |
- Total $=186$. Check with total − unwanted (0 or 1 woman):
A group of 4 is chosen from 5 boys and 3 girls. How many groups contain at least one girl?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Total C(8,4) = 70; groups with no girl C(5,4) = 5; so 70 − 5 = 65.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
Worked exam question: arranging PARALLEL
Question (6 marks). Find the number of different arrangements 排列 of the 8 letters of the word PARALLEL (a) in total, (b) in which the three L's are together, (c) in which the two A's are not next to each other.
- Count the repeats: P, R, E once each; A twice; L three times.
- (a) $\dfrac{8!}{2!\,3!}=\dfrac{40320}{12}=$ 3360 (B1).
- (b) Treat LLL as one block: 6 items (LLL, P, A, R, A, E), with A repeated. $\dfrac{6!}{2!}=$ 360 (M1 A1). There is nothing to multiply inside the block, because the L's are identical.
- (c) A's together: treat AA as one block, giving 7 items with three L's: $\dfrac{7!}{3!}=840$ (M1). Not together $=3360-840=$ 2520 (M1 A1).
Why answers lose marks: forgetting to divide by $3!$ for the L's in part (c), or multiplying by $2!$ for the "inside" of a block of identical letters.
Find the number of arrangements of the letters of COFFEE (a) in total, (b) with the two F's together, (c) with the two E's not together.
Same method as PARALLEL.
การ์ดนี้เป็นการ์ดใหม่ จึงแสดงเป็นภาษาอังกฤษจนกว่าคำแปลจะพร้อม
You've got it
- $n$ different objects in a row: $n!$; permutation 排列 ${}^nP_r=\dfrac{n!}{(n-r)!}$; combination $\boxed{{}^nC_r=\dfrac{n!}{r!(n-r)!}}$
- repeated letters: divide by each repeat's factorial
- together: one block × arrangements inside; apart: total − together, or the gaps method; ends: fill them first
- conditions on a selection: list the cases, multiply within a case, add the cases; check with total − unwanted
How many unordered pairs are there?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
8 C 2 is 28.
เกิดปัญหาอะไรขึ้น? เฉพาะทีมเว็บไซต์เท่านั้นที่เห็นข้อมูลนี้