

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Discrete Structures; Subject: Computer Science; University: University of Illinois - Urbana-Champaign; Term: Spring 2008;
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Set Theory Notation empty set ∅ { } subset A ⊆ B ∀x : x ∈ A → x ∈ B proper subset A ⊂ B A ⊆ B ∧ ∃y ∈ B : y 6 ∈ A superset A ⊇ B B ⊆ A proper superset A ⊃ B B ⊂ A set equality A = B A ⊆ B ∧ B ⊆ A union A ∪ B {x | x ∈ A ∨ x ∈ B} intersection A ∩ B {x | x ∈ A ∧ x ∈ B} difference A \ B {x | x ∈ A ∧ x 6 ∈ B} = A ∩ B symmetric difference A∆B {x | x ∈ A ↔ x 6 ∈ B} complement A {x | x 6 ∈ A} = U \ A Cartesian product A × B {(a, b) | a ∈ A ∧ b ∈ B} power set P(A) {B | B ⊆ A} cardinality |A| # of elements (if finite)
Logic proposition statement which is unambiguously true or false predicate proposition which incorporates a variable logical operations and ∧, or ∨, not ¬ universal quantifier for all, written ∀ existential quantifier there exists, written ∃ implication if p then q, written p → q inverse of p → q ¬p → ¬q converse of p → q q → p contrapositive of p → q ¬q → ¬p
Binary relation R ⊆ A × A relation notation a and b are related ⇐⇒ (a, b) ∈ R inverse R−^1 {(b, a) ∈ A × A | (a, b) ∈ R} reflexive ∀a ∈ A, (a, a) ∈ R symmetric ∀a, b ∈ A, if (a, b) ∈ R then (b, a) ∈ R antisymmetric ∀a, b ∈ A, if (a, b) ∈ R and (b, a) ∈ R, then a = b transitive ∀a, b, c ∈ A, if (a, b) ∈ R and (b, c) ∈ R, then (a, c) ∈ R
Equivalence relation ∼ An equivalence relation is a binary relation which is reflexive, symmetric, and transitive
Partial order π A partial order, or poset, is a binary relation which is reflexive, antisymmetric, and transitive.
Function f : A → B A function f from A to B associates each element a ∈ A to exactly one element b ∈ B. Notation b = f (a) if b is associated to a one-to-one (or injective) ∀a 1 , a 2 ∈ A, if a 1 6 = a 2 then f (a 1 ) 6 = f (a 2 ) onto (or surjective) ∀b ∈ B, ∃a ∈ A such that f (a) = b bijection one-to-one and onto inverse f −^1 : B → A {(b, a) | b = f (a)} (if f is a bijection)
Recursion tree for T (n) = aT (n/b) + f (n) f (n)
f (n/b)
f (n/b^2 ) .. .
... f (n/b^2 ) .. . ... f (n/b)
f (n/b^2 ) .. .
... f (n/b^2 ) .. .
−→ f (n)
−→ a · f (n/b)
−→ a^2 · f (n/b^2 ) (logb n levels)
∃c < 1 : a · f (n/b) = c · f (n) =⇒ T (n) = Θ(f (n)) a · f (n/b) = f (n) =⇒ T (n) = Θ(f (n) log n) ∃c > 1 : a · f (n/b) = c · f (n) =⇒ T (n) = Θ(nlogb^ a)
Asymptotic notation f (n) = o(g(n)) ∀c > 0 : ∃N > 0 : ∀n ≥ N : f (n) <<< c · g(n) f (n) = O(g(n)) ∃c > 0 : ∃N > 0 : ∀n ≥ N : f (n) ≤≤≤ c · g(n) f (n) = Θ(g(n)) f (n) = O(g(n)) and f (n) = Ω(g(n)) f (n) = Ω(g(n)) ∃c > 0 : ∃N > 0 : ∀n ≥ N : f (n) ≥≥≥ c · g(n) f (n) = ω(g(n)) ∀c > 0 : ∃N > 0 : ∀n ≥ N : f (n) >>> c · g(n)
nlim→∞^ f^ (n) g(n)
= 0 =⇒ f (n) = o(g(n)) < ∞ =⇒ f (n) = O(g(n))
0 =⇒ f (n) = Ω(g(n)) = ∞ =⇒ f (n) = ω(g(n)) f (n) = o(g(n)) ⇐⇒ g(n) = ω(f (n)) f (n) = O(g(n)) ⇐⇒ g(n) = Ω(f (n)) f (n) = Θ(g(n)) ⇐⇒ g(n) = Θ(f (n))