Summary Flashcards

1
Q

∃ meaning

A

at least one member

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

∀ meaning

A

all members

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

X (or Σ) meaning

A

the finite input alphabet/set

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

Y (or ω) meaning

A

the finite output alphabet/set

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

Turing machine Q symbol

A

set of states

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

Turing machine b symbol

A

blank symbol

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

Turing machine Γ symbol

A

set of alphabets

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

Turing machine Σ symbol

A

set of inputs

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

Turing machine F symbol

A

final state

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

Turing machine δ symbol

A

transition function

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

ε or Λ symbol

A

empty, null string

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

In-place sorting

A

When a program doesn’t require extra spaces

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

Not-in-place sorting

A

When a program requires extra spaces

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

In-place sorting example

A

Bubble sort

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

Not-in-place sorting example

A

Merge-sort

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

Completed graph

A

where every vertex is connected with an edge

17
Q

Connected graph

A

when every vertex is connected to every other vertex

18
Q

Total degree

A

the sum of all vertices (twice the number of edges)

19
Q

In-degree

A

the number of edges incoming on a vertex

20
Q

Out-degree

A

the number of edges outgoing from a vertex

21
Q

Path

A

a sequence of vertices and edges

22
Q

Circuit

A

a path which starts and ends at the same vertex

23
Q

Cycle

A

a circuit that has on repeated vertices

24
Q

Eulerian path

A

a path that visits every edge exactly once (vertex can be repeated)

25
Q

Eulerian circuit

A

an Eulerian path that starts and ends at the same vertex

26
Q

Hamiltonian path

A

includes every vertex exactly once

27
Q

Hamiltonian circuit

A

a Hamiltonian path that starts and ends at the same vertex

28
Q

Isomorphic graph

A

a graph in which a single graph can have more than one form

29
Q

If a full binary tree has n internal vertices, what is the formula to calculate the total vertices?

A

2n + 1

30
Q

If a full m-ary tree has n internal vertices, what is the formula to calculate the total vertices?

A

mn + 1

31
Q

How to calculate the number of leaves based on a tree’s height?

A

If h >= 0, then t <= 2^h

32
Q

Pre-order traversal

A

Each parent node is visited before its children

33
Q

In-order traversal

A

Each parent node is visited in between its children

34
Q

Post-order traversal

A

Each parent node is visited after its children

35
Q

If p → q, what’s the inverse

A

Inverse: ~p → ~q

36
Q

If p → q, what’s the converse

A

Converse: q → p

37
Q

If p → q, what’s the contrapositive

A

Contrapositive: ~q → ~p