Professional Documents
Culture Documents
Week 8 Finite Automata I
Week 8 Finite Automata I
Week 8 Finite Automata I
eg
-
(a,b,c,...,z
-
30,13
- word or
string (over an alphabets) is a finite sequence of
written without
symbols from 3 commas
e.g-tortoise
-
11(100001
- the
empty word, denoted by 3, is a word over
any
alphabet (assuming is not a symbol of any alphabet
->
length of a word wis
(w) number
=
of symbols in w
for every b
->
if n =
xy them as is
prefix of wand is suffix of
w
eg for is
prefix and suffix of tortoise
so is
e.g
S 9a,b,c,...,z7
=
LIFARengUshwordsthis
E
Finite Automaton
head of
a balbiblalcIc...
Input tape: cells, having
divided into
a leftmost cell, but as
long as needed on
the Each cell may contain one
right. the
of alphabet.
character input
How a finite automaton works
-> The
tape contains a finite word of the input alphabet
starting from the left and blank cells after.
-
reading head is positioned on leftmost cell containing
First character of input word.
->
At regular
intervals, the automation
↳ reads character from input tape
one
↳ moves
reading head
↳ chooses next state
one cell to
right
of control device.
-> the control device is hard wined such that the next
state depends on the previous state and on the
character read from the
tape.
->
As the input is finite, at some moment the reading
reaches the end of the input word (i.e the first
blank cell)
- if at this
point the controlderice is in favourable state
a
3
the automation. Otherwise, it
the input word is accepted by is
rejected
Each finite automation is kind of or decision
->
all
a
recognition
words of its input alphabet
device over possible
-> Each automaton can be tried on infinitely many input words and
each time.
gives a YES/NO answer
automation
by directed multigraph
a
La
control device.
e.g for
automation above
input 1: abba
computation: (s,abba), (s.bba),(q,ba), (q,a),(v,9)
abba is rejected
input 2:aabb
computation: (s,aabb). (s,abb), (s,bb), (q,b), (9,2)
aabb is accepted
Deterministic Finite Automaton (DFA)
-
why deterministic
and each
↳ for each state
symbol, there is a
unique arrow
tables
transition
->
&
a
& &
A,.>sc r -
La
& rr m
q