北京邮电大学--计算机学院--离散数学-2.2--Set-operations.ppt

上传人:99****p 文档编号:1584805 上传时间:2019-03-06 格式:PPT 页数:34 大小:419.50KB
下载 相关 举报
北京邮电大学--计算机学院--离散数学-2.2--Set-operations.ppt_第1页
第1页 / 共34页
北京邮电大学--计算机学院--离散数学-2.2--Set-operations.ppt_第2页
第2页 / 共34页
北京邮电大学--计算机学院--离散数学-2.2--Set-operations.ppt_第3页
第3页 / 共34页
北京邮电大学--计算机学院--离散数学-2.2--Set-operations.ppt_第4页
第4页 / 共34页
北京邮电大学--计算机学院--离散数学-2.2--Set-operations.ppt_第5页
第5页 / 共34页
点击查看更多>>
资源描述

1、Yang JCollege of Computer Science & TechnologyBeijing University of Posts & TelecommunicationsSet Operations(集合的运算)2* College of Computer Science & Technology, BUPTSet Operationsn Propositional calculus (命题演算) and set theory(集合论) are both instances of an algebraic system (代数系统) called aBoolean Algeb

2、ra(布尔代数)n The operators in set theory are defined in terms of the corresponding operator in propositional calculusn As always there must be a universe U. All sets are assumed to be subsets of U3* College of Computer Science & Technology, BUPTEqual(相等)n Definition: Two sets A and B are equal, denoted

3、 A = B, iffxx A x B.n Note: By a previous logical equivalence we haveA = B iff x(x A x B) (x B x A)orA = B iff A B and B A4* College of Computer Science & Technology, BUPTDefinitionsn The union(并集) of A and B, denoted A B, is the setx | xAxBn The intersection (交集) of A and B, denoted A B, is the set

4、x | xAxBn Note: If the intersection is void, A and B are said to be disjoint(不相交) .n The complement (补集) of A, denoted A, is the set x | (xA)n Note: Alternative notation is Ac, and x|xA.5* College of Computer Science & Technology, BUPTThe Addition principle (加法原理)n Theorem n If A and B are finite se

5、ts, then |AB|=|A|+|B|-|AB|n It also called the inclusion-exclusion principle(容斥原理)6* College of Computer Science & Technology, BUPTExamplen Let A=a, b, c, d, e and B=c, e, f, h, k, m. Verify inclusion-exclusion principle.n Solution:n A B=a, b, c, d, e, f, h, k, m and A B= c, en |A|= 5, |B|= 6, | A B

6、 |= 9 and | A B |= 2n |A|+|B|-| A B |= 9=| A B |n Q.E.D7* College of Computer Science & Technology, BUPTThe Addition principle for Disjoint Setsn |AB|=|A|+|B|8* College of Computer Science & Technology, BUPTDefinitionsn The difference(差) of A and B, or the complement of B relative to A(, denoted A -

7、 B, is the setA B n Note: The (absolute) complement of A is U - A.n The symmetric difference(对称差) of A and B, denoted AB, is the set(A B)(B A)9* College of Computer Science & Technology, BUPTVenn Diagramsn A useful geometric visualization tool (for 3 or less sets)n The Universe U is the rectangular boxn Each set is represented by a circle and its interiorn All possible combinations of the sets must be represented10* College of Computer Science & Technology, BUPTVenn Diagramsn Shade the appropriate region to represent the given set operation.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育教学资料库 > 课件讲义

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。