SLIDE 1
CSE 311: Foundations of Computing
Fall 2013 Lecture 10: Functions, Modular arithmetic
announcements
Reading assignment Modular arithmetic
4.1-4.2, 7th edition 3.4-3.5, 6th edition
Homework 3 due now
Graded Homework 2 and Solutions available Homework 4 out later today
review: set theory
∈ : “x is an element of A” ∉ : ¬ ( ∈ ) ⊆ ≡ ∀ ( ∈ → ∈ ) = ↔ ⊆ ∧ ⊆ ∪ = { ∶ ∈ ∨ ∈ } ∩ = { ∶ ∈ ∧ ∈ }
Some applications: Characteristic vectors, private key cryptography
() = { : ⊆ } × = {(, ): ∈ , ∈ }
functions review
- A function from to
- an assignment of exactly one element of
to each element of .
- We write ∶ → .
- “Image of ” = ()
- Domain of :
Codomain of :
- Range of = set of all images of elements of