What is LessonUp
Search
Channels
AI tools
Beta
Log in
Register
‹
Return to search
Template
Y12 - Unit 2 - Problem Solving
Topic 6: Finite State Machines
Key Vocabulary:
Finite
State
Transition
Automaton
Start State
Accept State
End State
In this lesson, you will
Understand what is meant by a finite state machine
List some of the uses of a finite state machine
Draw and interpret simple state transition diagrams for finite state machines with no output
Draw a state transition table for a finite state machine with no output
1 / 32
next
Slide 1:
Slide
Computer Science
Lower Secondary (Key Stage 3)
This lesson contains
32 slides
, with
interactive quizzes
and
text slides
.
Lesson duration is:
60 min
Start lesson
Save
Share
Print lesson
Items in this lesson
Y12 - Unit 2 - Problem Solving
Topic 6: Finite State Machines
Key Vocabulary:
Finite
State
Transition
Automaton
Start State
Accept State
End State
In this lesson, you will
Understand what is meant by a finite state machine
List some of the uses of a finite state machine
Draw and interpret simple state transition diagrams for finite state machines with no output
Draw a state transition table for a finite state machine with no output
Slide 1 - Slide
What is a finite state machine?
It is not a “machine” in the sense of some physical, mechanical thing with moving parts
It is an abstract representation of how something changes from one state to another in response to a condition or event
Slide 2 - Slide
In a finite state machine (FSM):
The machine can only be in one state at a time
It can change from one state to another in response to an event or condition; this is called a transition
The FSM is defined by a list of its states and the conditions for each transition
There can be outputs linked to the FSM’s state, but we will be considering only FSMs with no output
Slide 3 - Slide
Example: a turnstile
A turnstile is used to control access to a railway platform
It can be in one of two states: locked or unlocked
Inserting a ticket unlocks the turnstile, allowing a single customer to pass through
The arms are locked again until another ticket is inserted
Slide 4 - Slide
FSM representing a turnstile
Pushing the arm when the turnstile is in the locked state has no effect
Putting another ticket in when in the unlocked state also has no effect
Slide 5 - Slide
FSM representing a turnstile
Suppose the turnstile will not accept any ticket – it has to be a valid one for the journey
Can you draw a new state transition diagram with two extra inputs:
valid ticket
and
invalid ticket
?
There will be a third state –
ticket inserted
Slide 6 - Slide
FSM representing a turnstile
Slide 7 - Slide
Applications of FSMs
Robotics
Video games industry
Design of digital hardware systems
Design of compilers and network protocols
Definition of languages, and to decide whether a particular word is allowed in a language
Slide 8 - Slide
Finite state automaton
A FSM which has no output is known as a
finite state automaton
It has a start state and a set of
end
or
accept
states
If the automaton can reach a final state, it is said to
accept
the input
Starting in an initial state, the automaton processes a sequence of symbols and follows it to the target state
The symbols depend on the application – they usually represent events
Slide 9 - Slide
Notation
Slide 10 - Slide
Recognising a language
A finite state system
accepts
a string
if there is a path from the
start state
to the
end
or
accept state
labelled by the symbols C1, …., Cn
The language recognised by the FSM consists of all strings accepted by it.
Slide 11 - Slide
Applications of FSMs
Which of the following strings will be accepted by this finite state automaton?
aaac
badc
adadbd
ac
bdaac
bd
Slide 12 - Slide
Slide 13 - Open question
Worksheet 6
Now try the questions in
Task 1
of Worksheet 6
Slide 14 - Slide
Worksheet 6
Now try the questions in
Task 1
of Worksheet 6
Slide 15 - Slide
Slide 16 - Open question
Worksheet 6
Now try the questions in
Task 1
of Worksheet 6
Slide 17 - Slide
Slide 18 - Open question
Worksheet 6
Now try the questions in
Task 1
of Worksheet 6
https://www.madebyevan.com/fsm/
Slide 19 - Slide
State transition tables
An alternative representation of a FSM is a State Transition Table
The FSM below accepts two inputs a and b
The transition table shows what the next state is for any input. What strings does it accept?
Slide 20 - Slide
Example
Complete the transition table for the FSM shown
Which of the following strings are accepted?
Slide 21 - Slide
Slide 22 - Open question
Worksheet 6
Now try the questions in
Task 2
of Worksheet 6
Slide 23 - Slide
Worksheet 6
Now try the questions in
Task 2
of Worksheet 6
Slide 24 - Slide
Slide 25 - Open question
Worksheet 6
Now try the questions in
Task 2
of Worksheet 6
https://www.madebyevan.com/fsm/
Slide 26 - Slide
Worksheet 6
Now try the questions in
Task 2
of Worksheet 6
Slide 27 - Slide
Slide 28 - Open question
Worksheet 6
Now try the questions in
Task 2
of Worksheet 6
Slide 29 - Slide
Slide 30 - Open question
How NES Games Use State Machines For Everything
Slide 31 - Slide
Y12 - Unit 2 - Problem Solving
Topic 6: Finite State Machines
Slide 32 - Slide
More lessons like this
Finite State Machines
8 days ago
- Lesson with
32 slides
Computer Science
Lower Secondary (Key Stage 3)
Quiz KI
March 2024
- Lesson with
16 slides
Informatica
Middelbare school
vwo
Leerjaar 4
Year 7 - Quick Quiz 1
January 2024
- Lesson with
11 slides
Design and technology
Lower Secondary (Key Stage 3)
L11 - Transition elements
September 2024
- Lesson with
31 slides
Chemistry
Secondary Education
Transition Lesson 2: Worries, Worries, Worries
April 2025
- Lesson with
18 slides
by
PSHE
PSHE
LessonUp
Primary Education
PSHE
Test 2
September 2024
- Lesson with
22 slides
Online word
Upper Secondary (Key Stage 4)
BTEC
Transition Lesson 2: Worries, Worries, Worries
April 2025
- Lesson with
18 slides
by
PSHE
PSHE
Primary Education
PSHE
Transition Lesson 2: Worries, Worries, Worries
August 2023
- Lesson with
18 slides
by
LessonUp Inspiration
PSHE
LessonUp
Primary Education
LessonUp Inspiration