Finite State Machines Flashcards

1
Q

What is a finite state machine

A

A machine which consists of a finite set of possible states, with a set of allowable inputs that can change the state, and set of possible outputs

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

How do FSMs define what is solvable on a computer

A

If a problem is solvable by a computable algorithm then an FSM can be constructed from it and vice versa

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

What are the two FSMs which produce outputs

A

Moore, Mealy

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

What is a Mealy Machine(FSM)

A

An FSM which takes an input and produces an output as it transitions between states

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

What is a Moore Machine(FSM)

A

An FSM which takes an input and produces an output on arrival to a new state rather than on the transition

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

What are the two visual ways to represent an FSM

A

State transition diagram, State transition table

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

What is an accepting state(FSM)

A

A state that returns YES if it is reached after all inputs are consumed

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

What is a halting state(FSM)

A

A state with no outgoing transitions

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

What is a finite state automaton

A

A type of FSM that only provides a YES/NO, that it either rejects or accepts the input(s). No outputs.

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

What is a deterministic algorithm(FSM)

A

One who’s behaviour is completely determined by its inputs and the sequence of its instructions

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

What is a Non deterministic algorithm(FSM)

A

One which the outcome cannot be predicted with certainty even if the inputs are known

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

What is a state transition diagram

A

The model consisting of a circle for each state, arcs for transitions, and 2 concentric circles for accepting/halting states

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

What is a state transition table

A

A tabular version of a state transition diagram

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

What is the input alphabet(FSM)

A

The possible inputs to an FSM, also called triggers

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

What is the Output alphabet(FSM)

A

The possible outputs of an FSM

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