《离散数学》杨争锋ch.ppt
《《离散数学》杨争锋ch.ppt》由会员分享,可在线阅读,更多相关《《离散数学》杨争锋ch.ppt(21页珍藏版)》请在三一办公上搜索。
1、,4.5 Generalized Permutations and Combinations(一般性的排列与组合)Introduction See page 325.,2.Permutations with Repetition(有重复的排列)(1)Example 1(page 325)How many strings of length n can be formed from the English alphabet?Solution:26n,(2)Theorem 1(page 325)The number of r-permutations of a set of n objects w
2、ith repetition allowed is nr.Proof:当允许重复时,在r-排列中对r-个位置中的每个位置有n种方式选择集合的元素,因为对每个选择,所有n个物体都是有效的。因此,由乘法规则,当允许重复时存在nr 个r-排列。,3.Combinations with Repetition(有重复的组合)(1)Example 2(page 336)How many ways are there to select four pieces of fruit from a bowl containing apples,oranges,and pears if the order in w
3、hich the pieces are selected does not matter,only the type of fruit and not the individual pieces matters,and there are at least four pieces of each type of fruit in the bowl.,Solution:15 ways:4 apples 4 oranges 4 pears3 apples,1 oranges 3 pears,1 pear 3 oranges,1 apple3 oranges,1 pear 3 pears,1 app
4、le 3 pears,1 orange2 apples,2 oranges 2 apples,2 pears 2 oranges,2 pears2 apples,1 orange,1 pear2 oranges,1 apple,1 pear2 pears,1 apple,1 orangleThis solution is the number of 4-combinations with repetition allowed from a three-element set apple,orange,pear,(2)Example 3(page 326)How many ways are th
5、ere to select five bills from a cashbox containing$1 bills,$2 bills,$5 bills,$10 bills,$20 bills,$50 bills,and$100 bills?Assume that the order in which the bills are chosen does not matter,that the bills of each denomination are indistinguishable(同种币值的纸币是不加区分的),and that there are at least five bills
6、 of each type.,Solution:要点如下(page 336337),用6|和5*来描述,例如:(1)|*|*表示2$10s,3$1s(2)*|*|*|*|表示 1$100,1$50,2$20s,1$5(3)*|*|*|*表示 1$100,2$10s,1$2,1$1问题转化为:在11个位置中选5个*号的位置(请仔细思考)C(11,5)=11!/(5!6!),(3)Theorem 2 There are C(n+r-1,r)r-combinations from a set with n elememts when repetition of elements are allowe
7、d.Proof:当允许重复时n个元素集合的每个r-组合可以用n-1条竖线和r颗星的表表示。这n-1条竖线是用来标记n个不同的单元。每当集合的第i个元素出现在组合中,第i个单元就包含一颗星。例如,4元素集合的一个6-组合用3条竖线和6颗星来表示。这里,代表了恰好包含2个第一元素、个第二元素、个第三元素和个第四元素。正如我们已经看到,包含n-1条竖线和r颗星的每一个不同的表对应于n元素集合的允许重复的一个r-组合。这种表的个数是C(n-1+r,r),因为每个表对应于从包含r颗星和n-1条竖线的n-1+r个位置中取r个位置来放r颗星的一种选择。,(4)Example 4(page 338)Suppo
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 离散数学 争锋 ch

链接地址:https://www.31ppt.com/p-4952899.html