Presentation is loading. Please wait.

Presentation is loading. Please wait.

Finite-state machines Lecture 8. Outcomes By the end of the session you should: – Understand what a state diagram is. – Understand the principles of a.

Similar presentations


Presentation on theme: "Finite-state machines Lecture 8. Outcomes By the end of the session you should: – Understand what a state diagram is. – Understand the principles of a."— Presentation transcript:

1 Finite-state machines Lecture 8

2 Outcomes By the end of the session you should: – Understand what a state diagram is. – Understand the principles of a finite state machine – Describe a simple system using a state diagram – Applications using state diagrams

3 What is a state?

4 State diagram (Taken from Picton 2004) Button? Cup? End? yes no yes State 0 wait for the button to be pressed State 1 wait for a cup to be placed State 2 wait for the coffee to be poured

5 Next-state table (Taken from Picton 2004) 00 00 1 111 222 2

6 Where are they used? Designing systems Games

7 Task 1 Your designing a character for a maze-based game. You must design a state diagram and table for the character.

8 BlockedEnd of Maze PresentYesNoYesNo 12141 23343 33141 44444

9

10 Further reading and references http://en.wikipedia.org/wiki/Finite_state_machin e http://en.wikipedia.org/wiki/Finite_state_machin e Picton PD (2004) CSY3011 Artificial Neural Networks, University College Northampton


Download ppt "Finite-state machines Lecture 8. Outcomes By the end of the session you should: – Understand what a state diagram is. – Understand the principles of a."

Similar presentations


Ads by Google