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

Class 8: Relations and Functions

David Evans
September 15, 2016
3.5k

Class 8: Relations and Functions

cs2102: Discrete Mathematics
University of Virginia, Fall 2016

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

David Evans

September 15, 2016
Tweet

Transcript

  1. Class 8: Functions and Relations cs2102: Discrete Mathematics | F16

    uvacs2102.github.io David Evans | University of Virginia
  2. Function Mathematical Data Type Domain 4 2102 { 1, 2,

    3, …} : $ Codomain ARCH 6.042 : ⟶
  3. Cartesian Product Definition. A Cartesian product of sets 7 ×$

    × ⋯ ×: is a set consisting of all possible sequences of elements where the th element is chosen from = . × = , ∈ , ∈ } 7 ×$ × ⋯ ×: = 7 , $,…,DE = ∈ = }
  4. Cartesian Product Definition. A Cartesian product of sets 7 ×$

    × ⋯ ×: is a set consisting of all possible sequences of elements where the th element is chosen from = . × = , ∈ , ∈ } 7 ×$ × ⋯ ×: = 7 , $,…,DE = ∈ = } How many elements are in ×?
  5. Total and Partial 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.
  6. Slack break… Questions about PS3 topics Questions about functions What

    is the smallest natural number that cannot be described in eleven words?
  7. The smallest natural number that cannot be described in eleven

    words. 1 2 3 4 5 6 7 8 9 10 11 What is the smallest natural number that cannot be described in eleven words?
  8. Relation Properties A B function: ≤ 1 out total: ≥

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

    1 out injective: ≤ 1 in surjective: ≥ 1 in bijective: = 1 out, = 1 in
  10. Charge • PS3 Due Friday (6:29pm) • Next week: –

    Cardinality (MCS 4.5) – Start Induction (MCS 5.1)