9
Copyright © 2014 Curt Hill Set Operations Now it gets fun

Copyright © 2014 Curt Hill Set Operations Now it gets fun

Embed Size (px)

Citation preview

Page 1: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Copyright © 2014 Curt Hill

Set Operations

Now it gets fun

Page 2: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Set Operations• Operations, either unary or binary

that operate on sets and produce sets.

• Basic operations include union, intersection, and complementation.

• From these other operations can be built, the most common of which is set difference

Copyright © 2014 Curt Hill

Page 3: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Union• A binary operation that takes two sets

and produces the set containing every element from both of the two sets

• AB is the notation• Union is associative and commutative• If A = {1,2,3,4,5}• If B = {2,4,6,8}• Then AB = {1,2,3,4,5,6,8}

Copyright © 2014 Curt Hill

Page 4: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Intersection• A binary operation that takes two sets

and produces the set containing only those elements that are in both sets

• Notation AB• Intersection is associative and

commutative.• If A = {1,2,3,4,5}• If B = {2,4,6,8}• Then AB = {2,4}

Copyright © 2014 Curt Hill

Page 5: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Set Difference• A binary operation that takes two sets

and produces a set, denoted by A-B • The resulting set contains every

element in A that is not an element in B

• If A = {1,2,3,4,5}• If B = {2,4,6,8}• Then A-B = {1,3,5}• B-A = {6,8}

Copyright © 2014 Curt Hill

Page 6: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Symmetric Difference• The union of the two set differences• If A = {1,2,3,4,5}• If B = {2,4,6,8}• Then A⨁B is {1,3,5,6,8}• This is the same as (AB)-(AB)

Copyright © 2014 Curt Hill

Page 7: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Complementation• A unary operation that takes a set

and produces the set containing the universe of discourse with every element from the original removed

• Symbol is the set with over bar: Ā. • The same as U-A

Copyright © 2014 Curt Hill

Page 8: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Sets and Logic • Union corresponds to Or• Intersection corresponds to And• Complementation corresponds to

Negation• Subset corresponds to Implication

– Mutual subset corresponds to biconditional or equivalence

Copyright © 2014 Curt Hill

Page 9: Copyright © 2014 Curt Hill Set Operations Now it gets fun

Next• We will next consider Venn diagrams

Copyright © 2014 Curt Hill