Slide 1

Slide 1 text

Class 9: Relations Set Cardinality cs2102: Discrete Mathematics | F17 uvacs2102.github.io David Evans | University of Virginia

Slide 2

Slide 2 text

Plan Binary Relations Injective, Surjective, Function, Total Composition Inversions Cardinality of Finite Sets Powersets, Well-Ordering Practice PS4 due Friday PS5 due Sept 29 Exam 1: in-class on Oct 5 covers through Class 11

Slide 3

Slide 3 text

Binary Relation What makes a binary relation a function? A B

Slide 4

Slide 4 text

Relation Properties A B function: ≤ 1 out total: ≥ 1 out injective: ≤ 1 in surjective: ≥ 1 in

Slide 5

Slide 5 text

Relation Properties A B function: ≤ 1 out total: ≥ 1 out injective: ≤ 1 in surjective: ≥ 1 in bijective: = 1 out, = 1 in

Slide 6

Slide 6 text

Defining Function A function is total is every element in the domain has an associated codomain element. A partial function may have domain elements with no associated codomain element. function: ≤ 1 out total: ≥ 1 out Alternate definitions: “function”: =1 out “partial function”: <= 1 out

Slide 7

Slide 7 text

Total Function? , ∷= /

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

: , , ⊆ × PS3: ⟶

Slide 10

Slide 10 text

Definitions Recap function: ≤ 1 out injective: ≤ 1 in total: ≥ 1 out surjective: ≥ 1 in Which of these properties should the PS3 relation satisfy? PS3: ⟶

Slide 11

Slide 11 text

function: ≤ 1 out injective: ≤ 1 in total: ≥ 1 out surjective: ≥ 1 in PS3 Grades: ⟶

Slide 12

Slide 12 text

Composing Relations PS3 Submissions: ⟶ PS3 Grades: ⟶

Slide 13

Slide 13 text

Composing Relations A : , , A ⊆ × B ∘ A ∷= B : __, __, B ⊆

Slide 14

Slide 14 text

Composing Relations A : , , A ⊆ × B ∘ A ∷= , , AB ⊆ × , ∈ AB ⟺ , ∈ A ∧ , ∈ B B : , , B ⊆ ×

Slide 15

Slide 15 text

Inverting a Relation The inverse of a relation R is defined by reversing all the arrows: JA: ⟶ , JA ⊆ × The inverse of : ⟶ , ⊆ × is:

Slide 16

Slide 16 text

Inverting a Relation The inverse of a relation R is defined by reversing all the arrows: JA: ⟶ , JA ⊆ × , ∈ JA ⟺ , ∈ The inverse of : ⟶ , ⊆ × is:

Slide 17

Slide 17 text

Inverse of < <: ℤ ⟶ ℤ, N ⊆ ℤ×ℤ , ∈ JA ⟺ , ∈

Slide 18

Slide 18 text

Inverse of = =: ℤ ⟶ ℤ, O ⊆ ℤ×ℤ , ∈ JA ⟺ , ∈

Slide 19

Slide 19 text

Slack break: any questions so far , ∈ JA ⟺ , ∈ Are there any relations : ℤ ⟶ ℤ other than =, where JA = ?

Slide 20

Slide 20 text

Other Self-Inverses? , ∈ JA ⟺ , ∈

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Cardinality of Finite Sets

Slide 23

Slide 23 text

Oridinal vs. Cardinal Numbers

Slide 24

Slide 24 text

Oridinal vs. Cardinal Numbers Ordinal Cardinal first one second two third three fourth four fifth five … … 29th 29 English

Slide 25

Slide 25 text

Oridinal vs. Cardinal Numbers Ordinal Cardinal first one second two third three fourth four fifth five … … 29th 29 Ordinal Cardinal erste eins zwei zweite drei dritte vier vierte fünf fünfte … … neunundzwanzig neunundzwanzigste English German Ordinal Cardinal முதல் ஒன்று இரண்டாம் இரண்டு மூன்றாம் மூன்று நான்காம் நான்கு ஐந்து … Tamil

Slide 26

Slide 26 text

Set Cardinality If is a finite set, the cardinality of , written ||, is the number of elements in . Is this a totally satisfying definition?

Slide 27

Slide 27 text

Set Cardinality If is a finite set, the cardinality of , written ||, is the number of elements in . Fundamental set operation: membership ∈ Can we define cardinality in terms of membership?

Slide 28

Slide 28 text

Alternate Definition The cardinality of the set ℕR = ∈ ℕ ∧ < } is .

Slide 29

Slide 29 text

Charge PS4 Due Friday (6:29pm) Thursday: Start Induction (MCS 5.1)