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

29
S1 Teknik Telekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 1: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

S1 Teknik TelekomunikasiFakultas Teknik Elektro

FEH2H3 | 2016/2017

Boolean Algebra and Logic Series

CLO1-Week1-Set Theory and Venn Diagram

Page 2: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas 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

Page 3: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 4: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 5: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 6: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 7: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 8: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 9: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 10: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 11: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 12: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 13: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 14: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 15: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Venn Diagrams

• Try this one!

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

A B

A B

Page 16: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Venn Diagrams

• Here is another one

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

A B

A B

A B

A B

Page 17: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 18: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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

Page 19: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Set Partition

A

W

X Y

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

Page 20: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

A ?

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

Page 21: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

A A=?

Page 22: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

A ?

Page 23: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

A A=?

Page 24: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

A A ?

Page 25: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

A ?

Page 26: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

?

Page 27: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

If A B then

A B ?

Page 28: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

Some Test Questions

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

If A B then A B ?

Page 29: Boolean Algebra and Logic Series · PDF fileS1TeknikTelekomunikasi Fakultas Teknik Elektro FEH2H3 | 2016/2017 Boolean Algebra and Logic Series CLO1-Week1-Set Theory and Venn Diagram

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