Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Class 9: Relations, Set Cardinality

David Evans
September 19, 2017

Class 9: Relations, Set Cardinality

cs2102: Discrete Mathematics
University of Virginia, Fall 2017

See course site for notes:
https://uvacs2102.github.io

David Evans

September 19, 2017
Tweet

More Decks by David Evans

Other Decks in Education

Transcript

  1. Class 9: Relations Set Cardinality cs2102: Discrete Mathematics | F17

    uvacs2102.github.io David Evans | University of Virginia
  2. 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
  3. Relation Properties A B function: ≤ 1 out total: ≥

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

    1 out injective: ≤ 1 in surjective: ≥ 1 in bijective: = 1 out, = 1 in
  5. 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
  6. Definitions Recap function: ≤ 1 out injective: ≤ 1 in

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

    1 out surjective: ≥ 1 in PS3 Grades: ⟶
  8. Composing Relations A : , , A ⊆ × B

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

    ∘ A ∷= , , AB ⊆ × , ∈ AB ⟺ , ∈ A ∧ , ∈ B B : , , B ⊆ ×
  10. Inverting a Relation The inverse of a relation R is

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

    defined by reversing all the arrows: JA: ⟶ , JA ⊆ × , ∈ JA ⟺ , ∈ The inverse of : ⟶ , ⊆ × is:
  12. Slack break: any questions so far , ∈ JA ⟺

    , ∈ Are there any relations : ℤ ⟶ ℤ other than =, where JA = ?
  13. Oridinal vs. Cardinal Numbers Ordinal Cardinal first one second two

    third three fourth four fifth five … … 29th 29 English
  14. 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
  15. Set Cardinality If is a finite set, the cardinality of

    , written ||, is the number of elements in . Is this a totally satisfying definition?
  16. 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?