Professional Documents
Culture Documents
MACHINES
Computer Design
Communications
Linguistics
Theory of Computations
Basic Concepts
Basic Concepts
Finite
Discrete
Sequential
Deterministic
Applied FSMs
Mechanical Systems
Digital Electronic Systems
Pneumatic and Hydraulic Systems
Chemical Systems
Informstion Processing Systems
s(t) s(t-1)s(1)
OUTPUT CHANNEL
INPUT CHANNEL
INITIALIZE
Properties of FSM
Properties of FSM
Mathematical Description of
FSM
FSM consist of the following:
1.
The finite sets S,R,Q
2.
A state transition function f that gives the next
state of M in terms of the current state and the
next input symbol
3.
An output function g that gives the next output
symbol of M in terms of the current state and next
input symbol
4.
A predetermined initial state q(0) = qi in which M is
placed prior to instant t = 0
Representations of Machines
State Table
s
:
.
q
q,r
:
.
s/r
Q q
Representations of Machines
State Diagram
s/r
q = f(q,s)
r = g(q,s)
Example 1
The Modulo-3 Counter
Design a FSM whose output tells the number of
inout symbols modulo 3. Let a be the input
symbol
Example 2
The Parity Checker (Even Parity)
Design a FSM that will accept a series of 1s
and 0s; it should output 0 if there are even
number of 1s in the input stream otherwise it
should output 1
Example 3
Language Recognizer
Design a FSM to identify if an input w is an
element of the language
L ={ 11*01*}
LUNCH BREAK!
Class Presentation
BINDING
CONTROL STRUCTURES