discrete mathematics sets - department of...

5
Page 1 of 4 © 2020, I. Perepelitsa Discrete Mathematics Sets Definitionǣ A set is an unordered collection of distinct objectsǤ Examplesǣ a. the students in this class b. the chairs in this room c. counting numbers Definitionǣ The objects in a set are called the elementsǡ or members of the setǤ A set is said to contain its elementsǤ Notationǣ x The notation denotes that is an element of the set Ǥ x If is not a member of ǡ write Ǥ Ways to describe a set 1. Roster method x List all elements of a set x Order NOT important x Each distinct object is either a member or not; listing more than once does not change the set. x Ellipses ȋǥȌ ma be used to describe a set without listing all of the members when the pattern is clear. Example: ൌ ሼ, , , ሽ Usually elements in a set have a common property but this is NOT necessary. Example: ൌሼI, love, math, 10, Houston} 2. Set builder notation x Specify a property that all elements in a certain set must have. Example: ൌሼ ݔ| ݔ ݏ ݒ ݏݐݒ ݐ ݎݐ ݏݏ 12ሽ Some important sets ℕൌ natural numbers ሼ0,1,2,3 … . ሽ ℤൌ integers α ሼ… , െ3, െ2, െ1,0,1,2,3, … ሽ positie integers ሼ1,2,3, … . . ሽ ℝൌ set of real numbers α set of positie real numbers ℂൌ set of comple numbersǤ ℚൌ set of rational numbers

Upload: others

Post on 12-Oct-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Discrete Mathematics Sets - Department of Mathematicsirina/MATH3336/3336Notes/3336S21_notes.pdfDiscrete Mathematics Sets Definition ã A set is an unordered collection of distinct

Page 1 of 4

© 2020, I. Perepelitsa

Discrete Mathematics Sets Definition: A set is an unordered collection of distinct objects. Examples:

a. the students in this class b. the chairs in this room c. counting numbers

Definition: The objects in a set are called the elements, or members of the set. A set is said to contain its elements. Notation:

x The notation 𝑎 ∈ 𝐴 denotes that 𝑎 is an element of the set 𝐴. x If 𝑎 is not a member of 𝐴, write 𝑎 ∉ 𝐴.

Ways to describe a set 1. Roster method

x List all elements of a set x Order NOT important x Each distinct object is either a member or not; listing more than once does

not change the set. x Ellipses (…) may be used to describe a set without listing all of the members

when the pattern is clear.

Example: 𝑆 = {𝑎, 𝑏, 𝑐, 푑} Usually elements in a set have a common property but this is NOT necessary. Example: 𝐶 = {I, love, math, 10, Houston}

2. Set builder notation x Specify a property that all elements in a certain set must have.

Example: 𝐵 = {푥 |푥 푖푠 𝑎푛 푒푣푒푛 푝표푠푖푡푖푣푒 푖푛푡푒푔푒푟 푙푒푠푠 푡ℎ𝑎푛 12} Some important sets

ℕ = natural numbers = {0,1,2,3 … . }

ℤ = integers = {… , −3, −2, −1,0,1,2,3, … }

ℤ = positive integers = {1,2,3, … . . }

ℝ = set of real numbers

ℝ = set of positive real numbers

ℂ = set of complex numbers.

ℚ = set of rational numbers

Page 2: Discrete Mathematics Sets - Department of Mathematicsirina/MATH3336/3336Notes/3336S21_notes.pdfDiscrete Mathematics Sets Definition ã A set is an unordered collection of distinct

Page 2 of 4

© 2020, I. Perepelitsa

Example: 𝐵 = {푥 |푥 푖푠 𝑎푛 푒푣푒푛 푝표푠푖푡푖푣푒 푖푛푡푒푔푒푟 푙푒푠푠 푡ℎ𝑎푛 12} Example: {ℕ, ℤ, ℚ, ℝ} Definition: Two sets are equal if and only if they have the same elements. Notation: 𝐴 = 𝐵 푖푓푓 ∀푥 (푥 ∈ 𝐴 ↔ 푥 ∈ 𝐵) Example: 𝐴 = {푟푒푑, 𝑏푙푢푒, 𝑏푙𝑎𝑐푘}, 𝐵 = { 𝑏푙𝑎𝑐푘, 푟푒푑, 𝑏푙푢푒} Example: 𝐴 = {푟푒푑, 푟푒푑, 푟푒푑, 푟푒푑}, 𝐵 = {푟푒푑} Venn Diagrams Sets can be represented graphically using Venn diagrams. Venn diagrams are often used to show relations between sets.

John Venn (1834-1923) Cambridge, UK The universal set 𝑈 is the set containing everything currently under consideration.

y Sometimes implicit y Sometimes explicitly stated. y Contents depend on the context.

The empty (null) set is the set with no elements. Symbolized ∅, but {} also used. Example: Draw a Venn diagram that represents 𝑉 = {𝑎, 푒, 푖, 표, 푢}.

Page 3: Discrete Mathematics Sets - Department of Mathematicsirina/MATH3336/3336Notes/3336S21_notes.pdfDiscrete Mathematics Sets Definition ã A set is an unordered collection of distinct

Page 3 of 4

© 2020, I. Perepelitsa

Example: 𝐴 = {푥 ∈ ℕ |푥 < 0} Definition: A set with one element is called a singleton set. Example: 𝐴 = {푥 ∈ ℕ|푥 ≤ 0} Definition: The set 𝐴 is a subset of 𝐵 if and only if every element of 𝐴 is also an element of 𝐵. 𝐴 is a strict (proper) subset of 𝐵 if 𝐴 is a subset of 𝐵 and 𝐴 is not equal to 𝐵. Notation: 𝐴 ⊆ 𝐵 and 𝐴 ⊂ 𝐵 respectively. Example: {1, 2} ⊂ {1, 2, 3, 4} ⊆ {1, 2, 3, 4}

x To show that 𝐴 ⊆ 𝐵, show that if 푥 belongs to 𝐴, then x also belongs to 𝐵. x To show that 𝐴 ⊈ 𝐵, find a single 푥 ∈ 𝐴 such that 푥 ∉ 𝐵. x For every set 𝑆, ∅ ⊂ 𝑆 and 𝑆 ⊆ 𝑆.

Prove: For every nonempty set 𝑆, ∅ ⊂ 𝑆. Proof: Definition: Given a set A, cardinality (size) of 𝐴 is the number of elements in 𝐴. Notation: |𝐴| Definition: The power set is the set of all subsets of a given set, and is denoted by 풫(𝐴). If a set has 푛 elements, its power set contains 2 elements.

Page 4: Discrete Mathematics Sets - Department of Mathematicsirina/MATH3336/3336Notes/3336S21_notes.pdfDiscrete Mathematics Sets Definition ã A set is an unordered collection of distinct

Page 4 of 4

© 2020, I. Perepelitsa

Try this: 𝐴 = {1, {2}, {3,4}}, 𝐵 = {1, 2, 3, 4}

1. True or False? a. 1 ∈ 𝐴

b. 2 ∈ 𝐴

c. {3} ⊂ 𝐴

d. 2 ∈ 𝐵

e. {3} ⊂ 𝐵

f. ∅ ∈ 𝐴

g. ∅ ⊂ 𝐵

h. 𝐴 ⊆ 𝐵

2. Find

a. |𝐴|

b. |𝐵|

c. 풫(𝐴)

d. |∅|

e. |{∅}|

f. 풫(∅)

g. 풫({∅})

Page 5: Discrete Mathematics Sets - Department of Mathematicsirina/MATH3336/3336Notes/3336S21_notes.pdfDiscrete Mathematics Sets Definition ã A set is an unordered collection of distinct