4.4 [Theory of Computation] Flashcards

(30 cards)

1
Q

What is an algorithm?

A

A sequence of steps that can be followed to complete a task and that always terminates.

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

What is pseudo-code?

A

A way of expressing an algorithm in the style of a program, but without worrying about language-specific syntax.

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

What is procedural decomposition?

A

Breaking down problems into a number of sub-problems, so that each sub-problem accomplishes an identifiable task.

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

Define abstraction.

A

Removing details until the problem is represented in a way that is possible to solve.

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

What is representational abstraction?

A

A representation arrived at by removing unnecessary details.

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

What is procedural abstraction?

A

Abstracting away actual values used in a particular computation, resulting in a computational method or a procedure.

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

What is functional abstraction?

A

Hiding the procedure, presenting a function that works but whose internal workings are hidden.

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

What is data abstraction?

A

Hiding the real data structure used in order to present a simpler, compound data structure.

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

What is composition abstraction?

A

Combining procedures to form compound procedures.

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

What is automation?

A

Putting models into action to solve problems.

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

What does a set represent?

A

An unordered collection of unique values.

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

What does the notation A = {1,2,3,4,5} represent?

A

Set A contains the values 1, 2, 3, 4, and 5.

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

What does the symbol Ø denote?

A

An empty set, a set containing no elements.

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

What is the cardinality of a finite set?

A

The number of elements in the set.

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

Define a proper subset.

A

A subset that contains some, but not all, elements of its parent set.

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

What is the Cartesian Product of two sets?

A

Where a is a member of A and b is a member of B.

17
Q

What does the union of sets A and B represent?

A

A set containing the elements that are in either A or B.

18
Q

What is a regular expression?

A

A way of describing a set that allows a regular language to be described.

19
Q

What does the symbol * mean in regular expressions?

A

Zero or more of the preceding element.

20
Q

What is a finite state machine (FSM)?

A

A model that has a finite number of states, and inputs are used to transition between states.

21
Q

What is the purpose of a state transition diagram?

A

To represent an FSM with circles for states and arrows for transitions.

22
Q

What is the difference between a finite state automaton (FSA) and a finite state machine (FSM)?

A

An FSA has a start state and a number of accept states.

23
Q

What is the alphabet of an FSM?

A

The range of inputs it can accept.

24
Q

What are context-free languages?

A

Languages that cannot be represented by regular expressions or finite state machines.

25
What is time complexity?
How the speed changes relative to the size of the problem.
26
What does Big-O notation express?
The change in execution time as a function of the change in problem size in the worst-case scenario.
27
What is an intractable problem?
One for which there is no polynomial (or less) time solution.
28
What is a Turing machine?
A theoretical, fully abstracted computer running a single, fixed program.
29
What does a Turing machine consist of?
A finite set of states, a finite alphabet of symbols, an infinite tape, a sensing read-write head, and rules for transitioning.
30
What is a Universal Turing Machine?
A Turing machine that is simulated using a Turing machine.