Exam 2 Flashcards
Consider f, g : Z>0 → R⩾0. Give the definition of f = O(g).
f = O(g) if and only if there exist an integer n0 > 0 and a real number c > 0 such that,
for every n ⩾ n0, f (n) ⩽ cg(n).
Consider f, g : Z>0 → R⩾0. Give the definition of f = Ω(g)
f = Ω(g) if and only if there exist an integer n0 > 0 and a real number c > 0 such that,
for every n ⩾ n0, f (n) ⩾ cg(n).
Consider f, g : Z>0 → R⩾0. Give the definition of f = Θ(g)
f = Θ(g) if and only if f = O(g) and f = Ω(g)
Give the definition of a finite state machine
A finite state machine is a tuple (S, s0, I, δ) where
* S is a finite set (of states),
* s0 is an element of S (the starting state),
* I is a finite set (of inputs),
* δ : S × I → S is a function (the transition function).
Give the definition of a transducer (i.e. a finite state machine with output).
A transducer is a finite state machine equipped with a finite set (of outputs) O such
that its transition function is given by δ : S × I → S × O, where S and I denote the set of states
and the set of inputs of the finite state machine, respectively
Give the definition of an acceptor.
An acceptor is a finite state machine equipped with a subset A ⊆ S of accepted states,
where S denotes the set of states of the finite state machine.
State the principle of mathematical induction.
Given a predicate P (n) where n is a natural number, if
* P (0) holds and
* for every k ∈ N, P (k) ⇒ P (k + 1)
then P (n) holds for every n ∈ N
State the strong form of the principle of mathematical induction
Given a predicate P (n) where n is a natural number, if
* P (0) holds and
* for every k ∈ N, P (0) ∧ P (1) ∧ · · · ∧ P (k) ⇒ P (k + 1)
then P (n) holds for every n ∈ N
State the well-ordering principle.
Every non-empty subset of the natural numbers has a smallest element.
Name the three components of the recursive definition of a set.
The recursive definition of a set consists of three components:
1. the basis elements,
2. the recursive rule, and
3. the exclusion statement
State the structural form of the principle of mathematical induction.
Given a predicate P (x) where x belongs to a recursively-defined set S with recursive
rule “x ∈ S ⇒ f (x) ∈ S”, if
* P (x) holds for every basis element x ∈ S and
* P (x) ⇒ P (f (x)) for every x ∈ S
then P (x) holds for every x ∈ S.
Give the definition of a relation R between a set X and a set Y
A relation R between X and Y is a subset of X × Y
Give the definition of a relation R on a set X being reflexive
The relation R is reflexive if, for every x ∈ X, xRx
Give the definition of a relation R on a set X being symmetric
The relation R is symmetric if, for every x, y ∈ X, xRy ⇔ yRx.
Give the definition of a relation R on a set X being anti-symmetric
The relation R is anti-symmetric if, for every x, y ∈ X, if xRy and yRx then x = y