- UID
- 1432651
- 在线时间
- 小时
- 注册时间
- 2019-11-25
- 最后登录
- 1970-1-1
- 主题
- 帖子
- 性别
- 保密
|
求朋友们看看下面这两道题的解法思路为什么不一样啊?
1.At a meeting of the 7 chiefs of staff, A don't want to sit next to B. How many ways can the 7 chiefs be seated around a circular table?
2.The letters C,I,R,C,L, and E can be used to form 6-letter strings such as CIRCLE or CCIRLE. Using these letters, how many different 6-letter strings can be formed in which the two occurrences of the letter C are separated by at least one other letter?
1解析:假设A固定在一个位置上,B不能坐他旁边所以只有4个位置可以选。然后考虑剩下5个人,他们可以被安排到5的阶乘,即P5,5=5*4*3*2*1=120.全部的位置就是4*120=480
2解析:(5!*4 )/2=240 除掉重复的字母C,五个不同字母的组合方式为5! = 120. 把多余的C insert进五字母且和第一个C隔开的有4个缝可以插入;这样的六字组合一共有120*4=480种。两个C会出现相同的单词,除以2倍的重复,480/2 = 240.
为什么1不能用2这种插入的做法,如果是的话应该是P6,6 * 4??
|
|