排列组合问题

排列组合几大方法
两个必须相邻用捆绑法
必须分开用插空法
分组问题(每组最少一个)插板法
分组问题(每组最少没有)插板法(不过里面的球数要加上板数)
一些定理:
B i n o m i a l   T h e o r e m : ( x + y ) n = C n 0 x n + . . . C n n y n C n r = C n − 1 r − 1 + C n − 1 r P r i n c i p a l   o f   I n c l u s i o n   a n d   E x c l u s i o n ( P I E ) : P ( A + B + C ) = P ( A ) + P ( B ) + P ( C ) − P ( A + B ) − P ( B + C ) − P ( C + A ) + P ( A + B + C ) Binomial\ Theorem:(x+y)^n = C_n^0x^n + ...C_n^ny^n\\ C_n^r = C_{n-1}^{r-1} + C_{n-1}^r\\ Principal \ of\ Inclusion \ and \ Exclusion(PIE):\\ P(A+B+C) = P(A) + P(B) + P(C) - P(A+B) \\ -P(B+C)-P(C+A) +P(A+B+C) Binomial Theorem:(x+y)n=Cn0xn+...CnnynCnr=Cn1r1+Cn1rPrincipal of Inclusion and Exclusion(PIE):P(A+B+C)=P(A)+P(B)+P(C)P(A+B)P(B+C)P(C+A)+P(A+B+C)

1

The Smith family has 4 sons and 3 daughters. In how many ways can they be seated in a row of 7 chairs, such that at least 2 boys are next to each other?
Solution
The only case when 2 boys don’t next to each other is BGBGBGB, 4!*3!, so the overall solution is 7! - 4!*3! = 4896
Alert:Don’t use bagging methods to view 2 boys as one thing, becuase it will cause some replication.

2

I flip a coin 10 times.What is the expected number of pairs of consecutive tosses that come up heads? (For example, the sequence THHTHHHTHH has 4 pairs of consecutive HH’s.)
Solution:
The overall pairs in my throw is 9 times. For each pair, the expected HH is 1/4. So the overall pairs is 9*1/4 = 9/4

3

George has six ropes. He chooses two of the twelve loose ends at random (possibly from the same rope), and ties them together, leaving ten loose ends. He again chooses two loose ends at random and joins them, and so on, until there are no loose ends. Find, with proof, the expected value of the number of loops George ends up with.
Solution1: (recursive)
E n E_n En means start with n ropes, select one end, with 1/2n-1 you will form a circle or else remain the same
E n = 1 2 n − 1 ( E n − 1 + 1 ) + 2 n − 2 2 n − 1 E n − 1 E n = E n − 1 + 1 2 n − 1   E 1 = 1 , E 6 = 1508 3465 E_n = \frac{1}{2n-1}(E_{n-1} + 1) + \frac{2n-2}{2n-1}E_{n-1}\\ E_n = E_{n-1} + \frac{1}{2n-1}\ E_1 = 1,E_6 = \frac{1508}{3465} En=2n11(En1+1)+2n12n2En1En=En1+2n11 E1=1,E6=34651508
Solution 2:(directly)
Total number of combination begin with n: f ( n ) = C 2 n 2 . . . C 2 2 n ! f(n) = \frac{C^2_{2n}...C^2_2}{n!} f(n)=n!C2n2...C22 which is ( 2 n ) ! 2 n n ! \frac{(2n)!}{2^n n!} 2nn!(2n)!. Total number of comination to use n rope form a circle is g ( n ) = ( n − 1 ) ! 2 n − 1 g(n) = (n-1)!2^{n-1} g(n)=(n1)!2n1. So the total number of circles in all combination is ∑ i = 1 6 C 6 i g ( i ) f ( 6 − i ) \sum_{i=1}^6C_6^ig(i)f(6-i) i=16C6ig(i)f(6i). Divide it by f(6) will be ok.

4

Fifteen freshmen are sitting in a circle around a table, but the course assistant (who remains standing) has made only six copies of today’s handout. No freshman should get more than one handout, and any freshman who does not get one should be able to read a neighbor’s. If the freshmen are distinguishable but the handouts are not, how many ways are there to distribute the six handouts subject to the above conditions?
Solution: Suppose that you are one of the freshmen,we may ask, given that you do get a handout, how many ways are there to distribute the rest? We need only multiply the answer to that question by 15/6 to answer the original question.(because there are 15 people and the situation can be repeat 6 times.
Going clockwise around the table from you, one might write down the sizes of the gaps between people with handouts. There are six such gaps, each of size 0–2, and the sum of their sizes must be 15 − 6 = 11. So the gap sizes are either 1, 1, 1, 2, 2, 2 in some order, or 0, 1, 2, 2, 2, 2 in some order. In the former case, 6! = 20 orders are possible; 3!3!
in the latter, 6! = 30 are. Altogether, then, there are 20 + 30 = 50 possibilities.
1!1!4!
Multiplying this by 15/6, or 5/2, gives 125

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值