4 Flashcards

1
Q

What is the Halting Problem?

A

Can you write an automated program that would answer this question without running the code: “Will the given program terminate or run forever?”?

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

Computers are…

A

messy

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

What is an automaton (automata)

A

Is a mathematical model of computing device.

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

Why do we build models?

A

Because we need mathematical simplicity & intellectual robustness.

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

A Finite Automata is…

A

a machine with limited amount of storage

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

Name two types of Finite Automata:

A

Deterministic Finite Automata (DFA)
Non-deterministic Finite Automata (NFA)

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

What are Strings?

A

Sequence of any symbols

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

What’s an alphabet?

A

Is a finite set of symbols called characters

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

What are Languages?

A

Sets of strings

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

Define Finite Automata

A

Is a simple type of mathematical machine for determining wether a string is contained within some language.

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

A finite automata consists of…

A

a set of states connected by transitions.

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

What’s characteristic of a DFA?

A

For each state in the DFA, there must be exactly one transition defined for each symbol in Σ

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

When do we have a Regular Language?

A

If L is a language and L(D)=L, we say that D recognises the language.

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

What is the complement of a Language?

A

Language of all strings in Σ* that aren’t in L.

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

Regular language are closed under complementation. What does this mean?

A

If L is a regular language, then L’ is also a regular language.

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

A model of computation is deterministic if…

A

at every point in the computation there is exactly one choice that can make.

17
Q

A model of computation is non-deterministic if…

A

the computing machine may have multiple decisions that it can make at one point.

18
Q

Any language that can be accepted by a DFA…

A

can be accepted by a NFA.