Exam 2 Flashcards

1
Q

Consider f, g : Z>0 → R⩾0. Give the definition of f = O(g).

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Consider f, g : Z>0 → R⩾0. Give the definition of f = Ω(g)

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Consider f, g : Z>0 → R⩾0. Give the definition of f = Θ(g)

A

f = Θ(g) if and only if f = O(g) and f = Ω(g)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Give the definition of a finite state machine

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give the definition of a transducer (i.e. a finite state machine with output).

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give the definition of an acceptor.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

State the principle of mathematical induction.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

State the strong form of the principle of mathematical induction

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

State the well-ordering principle.

A

Every non-empty subset of the natural numbers has a smallest element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Name the three components of the recursive definition of a set.

A

The recursive definition of a set consists of three components:
1. the basis elements,
2. the recursive rule, and
3. the exclusion statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

State the structural form of the principle of mathematical induction.

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Give the definition of a relation R between a set X and a set Y

A

A relation R between X and Y is a subset of X × Y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give the definition of a relation R on a set X being reflexive

A

The relation R is reflexive if, for every x ∈ X, xRx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Give the definition of a relation R on a set X being symmetric

A

The relation R is symmetric if, for every x, y ∈ X, xRy ⇔ yRx.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Give the definition of a relation R on a set X being anti-symmetric

A

The relation R is anti-symmetric if, for every x, y ∈ X, if xRy and yRx then x = y

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Give the definition of a relation R on a set X being transitive

A

The relation R is transitive if, for every x, y, z ∈ X, if xRy and yRz then xRz

17
Q

Give the definition of an equivalence relation.

A

An equivalence relation is a relation which is reflexive, transitive, and symmetric.

18
Q

Let R be an equivalence relation on a set X. Give the definition of C ⊆ X being an equivalence
class

A

A subset C of X is an equivalence class if C is non-empty and, for any x ∈ C and any
y ∈ X, xRy if and only if y ∈ C

19
Q

Give the definition of a partial order.

A

A partial order is a relation which is reflexive, transitive, and anti-symmetric.

20
Q

Give the definition of a partially ordered set.

A

A partially ordered set is a pair (X, ⩽) where X is a set and ⩽ is a partial order on X

21
Q

Let (X, ⩽) be a partially ordered set. Give the definitions of two elements x, y ∈ X being comparable

A

The elements x and y are comparable if x ⩽ y or y ⩽ x

22
Q

Let (X, ⩽) be a partially ordered set. Give the definition of an element x ∈ X being minimal.

A

The element x is minimal if there is no element y ∈ X distinct from x such that y ⩽ x

23
Q

Give the definition of a relation R on a set X being irreflexive

A

The relation R is irreflexive if, for every x ∈ X, x ̸ R x

24
Q

Give the definition of a strict order.

A

A strict order is a relation which is irreflexive and transitive.

25
Q

Give the definition of a directed graph.

A

A directed graph is a pair (V, E) where V is a set whose elements are called vertices
and E is a subset of V × V whose elements are called directed edges