SD04 - Finite State Automata Flashcards

1
Q

What is the difference between a finite-state machine and a finite-state automaton?

A

An FSA doesn’t produce output. It instead accepts or rejects an input string as valid

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

What is the 5-tuple of a finite-state automaton?

A

F = (S, σ, A, I, f)

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

Why is it impractical to create a FSA to recognise ‘well bracketed’ expressions?
e.g. Accept (1+2), Reject (1+2

A

The number of brackets is infinite and therefore an infinite number of states is needed to keep track of them

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

What is a non-deterministic finite-state automaton?

A

An FSA where there can be several options for each input symbol.
An nFSA accepts a string if there’s any path
through it that would have accepted it.

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

How can two FSAs (F1 and F2) be added together?

A

Link the accepting states of F1 to the initial state of F2 with silent moves

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