Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro...

Preview:

Citation preview

S1 Teknik TelekomunikasiFakultas Teknik Elektro

FEH2H3 | 2016/2017

Boolean Algebra and Logic Series

CLO1-Week1-Set Theory and Venn Diagram

Definition of “Set”

What is “Set”?• A set is a collection of distinct objects• The objects in a set are called the elements or the members of the

setHow to note the “Set”• The name of the set is written in upper case and the elements of

the set are written in lower case• If x is an element of a set A, we say that x belongs to or is a member

of AHow to express?• “x belongs to A” is expressed symbolically as

x ϵ A.• If “y is not a member of A” then this is symbolically denoted as

y ϵ A

Boolean Algebra and Logic Series|S1-TT-Int 2

Ways of Describing Sets

• List the elements

• Give a verbal description• “A is the set of all integers from 1 to 6, inclusive”

• Give a mathematical inclusion rule

Boolean Algebra and Logic Series|S1-TT-Int 3

A= 1,2,3,4,5,6

A= Integers 1 6x x

Some Special Sets

• The Null Set or Empty Set. This is a set with no elements, often symbolized by

• The Universal Set. This is the set of all elements currently under consideration, and is often symbolized by

Boolean Algebra and Logic Series|S1-TT-Int 4

Membership Relationships

• Definition. Subset.

“A is a subset of B”

We say “A is a subset of B” if , i.e., all the members of A are also members of B. The notation for subset is very similar to the notation for “less than or equal to,” and means, in terms of the sets, “included in or equal to.”

Boolean Algebra and Logic Series|S1-TT-Int 5

A B

x A x B

Membership Relationships

• Definition. Proper Subset.

“A is a proper subset of B”

We say “A is a proper subset of B” if all the members of A are also members of B, but in addition there exists at least one element c such that but

The notation for subset is very similar to the notation for “less than,” and means, in terms of the sets, “included in but not equal to.”

Boolean Algebra and Logic Series|S1-TT-Int 6

A B

c Bc A

Theorems

• Theorem 1

– If AB and BC, then AC,

– If AB and BC, then AC,

– If AB and BC, then AC,

– If AB and BC, then AC,

• Theorem 2

– A. If A is not empty, then A.

Boolean Algebra and Logic Series|S1-TT-Int 7

Power Set

• For any finite set A with A =n, the total number of subsets of A is 2n.

• Definition 3.4. the power set of A, denoted as (A) is the collection of all subsets of A.

• What is the power set of {1, 2,3 4}?

Boolean Algebra and Logic Series|S1-TT-Int 8

Combining Sets – Set Union

• “A union B” is the set of all elements that are in A, or B, or both.

• This is similar to the logical “or” operator.

Boolean Algebra and Logic Series|S1-TT-Int 9

A B

Combining Sets – Set Intersection

• “A intersect B” is the set of all elements that are in both A and B.

• This is similar to the logical “and”

Boolean Algebra and Logic Series|S1-TT-Int 10

A B

Set Complement

• “A complement,” or “not A” is the set of all elements not in A.

• The complement operator is similar to the logical not, and is reflexive, that is,

Boolean Algebra and Logic Series|S1-TT-Int 11

A

A A

Set Difference

• The set difference “A minus B” is the set of elements that are in A, with those that are in B subtracted out. Another way of putting it is, it is the set of elements that are in A, and not in B, so

Boolean Algebra and Logic Series|S1-TT-Int 12

A B

A B A B

Examples

Boolean Algebra and Logic Series|S1-TT-Int 13

{1,2,3}A {3,4,5,6}B

{3}A B {1,2,3,4,5,6}A B

{1,2,3,4,5,6}

{4,5,6}B A {1,2}B

Venn Diagrams

• Venn Diagrams use topological areas to stand for sets. I’ve done this one for you.

Boolean Algebra and Logic Series|S1-TT-Int 14

A B

A B

Venn Diagrams

• Try this one!

Boolean Algebra and Logic Series|S1-TT-Int 15

A B

A B

Venn Diagrams

• Here is another one

Boolean Algebra and Logic Series|S1-TT-Int 16

A B

A B

A B

A B

Mutually Exclusive and Exhaustive Sets

• Definition. We say that a group of sets is exhaustive of another set if their union is equal to that set. For example, if we say that A and B are exhaustive with respect to C.

• Definition. We say that two sets A and B are mutually exclusive if , that is, the sets have no elements in common.

Boolean Algebra and Logic Series|S1-TT-Int 17

A B C

A B

Set Partition

• Definition. We say that a group of sets partitionsanother set if they are mutually exclusive and exhaustive with respect to that set. When we “partition a set,” we break it down into mutually exclusive and exhaustive regions, i.e., regions with no overlap. The Venn diagram below should help you get the picture. In this diagram, the set A (the rectangle) is partitioned into sets W,X, and Y.

Boolean Algebra and Logic Series|S1-TT-Int 18

Set Partition

A

W

X Y

Boolean Algebra and Logic Series|S1-TT-Int 19

Some Test Questions

A ?

Boolean Algebra and Logic Series|S1-TT-Int 20

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 21

A A=?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 22

A ?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 23

A A=?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 24

A A ?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 25

A ?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 26

?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 27

If A B then

A B ?

Some Test Questions

Boolean Algebra and Logic Series|S1-TT-Int 28

If A B then A B ?

Boolean Algebra and Logic Series|S1-TT-Int 29

Recommended