TC 1.note
TC 1.note
whee
2-fa, b} 3|a ] b
,
(o)
9, 4,
Draw the state DEA
EX of the foll o«
\eyt(Rang
(Domay) My
Hene
D D
Soj? 0,1
5) F= 4, is the set of acept steted
(O) 1
Ex O
Gives te fornal def DRA M,
,1 0,1
This s of DEA My
a,b *sel of
* The DFA My
accepted stngs =j¬, o,! ,0o, o1, 10,
aCcepts all e sings who5e lengt is atmasa
Shhany poESENYi DEA Language of a Machine -(Lon)
O,1 Jn DFA Ms , 4e set f aicepted shmgs
{oo,01, 000, ol0, o0,oll, -
(DFA M) ie the set of aciepted sthn
stat coits o0 on
= (set of stngs that Start
Lnput Sny processm outpul ith o1
L=
lengho
lengh
legt
-2
ab
e,
aaa,
length of lenghod
aab,*
a,b
a,b w
is
risble
lwMo)
8
by
3=o 3
i.e
V)
L= So v)
L l= a's SO
w)w =e,a, {wlu
a L-aa
has
odd
bb, has has
aa, odd
ad oab,
b5a
no. aba eren
b's] of nb'osof
. no. of
,
bab, of a's bbb,baa,3 no.
a's of
aaa, ? a's
abb.
-..}
nddsodd
J
00l,.
100o,
ooo, 10l,
el
ifo,1} 0l,
o0, 100,
-fo, 10,
L l:
So
5o
Ex
-
a* 2)
d basie operafons
ase
y The ’
to
concatenaton det
The
Ex operations
Regular
wnown e
Th
’
maip)ate Law has
reglan 4 star3) )
Concatencton diffenent
Union
opEn Ly
=languges
and {w
ations
:operabons con
AoB then tns o1
apped langunges.
Regler
= pes cognizedby e
lepeation AB laggs
relotwo of
o
are
- ae lenOLUnovn
wyl bsic
de
of fned sbShing!
neA nglor negular
ag ay
a
- o ag fni
faa,a',.] fol)ows
Relagru
langges
e8 peratons te
The auto
lngoges
neguler *>
staebot is *)
at:
2
Ljl soa-a-
Union (e<posihve
dosue + :-kleen
dose
one
|10)fiD,
operato.
onoryis
and -at, on
concate more
loare.reglg
n
olo, nahion repeoVn
l0)|l,loi0,
are
of
binay afa',a',a',...
9d
l00)0,
operatong
1o1[
?
=fe,1ol, lo, lo|lo|l, lol10 , lolo|l,1oj0, ..) So we Can pnigre thad A,uay-{wis of od lengts
o w s ends n 13 is a
1
Closune
propenty o,1
t N{,,3,4 ......*be te set of nat
nubens . Now N is Closed nden Additon(+)
0, 1
(DFA M, for A,)
(DF A Mi for A,)
operaton , bot ot in substnachon (-) openahon. UA,
Ex
Now Constrwct a new DFA M for Aj
E 36N, 5¬ N
3+5- 8EN sakshog dosne propeny
|1 1
’A se Unden Some
of elemets is dosed Unden
operaton if app that openaton,e result is
set.
dosed nden
the negolor languges
i) Union
iv o=2,r,
oo3) sta operatonG
closune propenty
te set of d ,1
Jet Ní,3,3,Y -....* be
Additn(al
nubens , Now N is Closed nden o, 1
(DFA M on Ay)
openation, but mt n substaacton (-) openan. (DFA M, fon A)
a new DFA Mfor A, UA,
Ex 36N, 5¬ N Now constwct
operatsonfo
dosed unden vnion
EXE Jet A,:(isof odd leng
n 1] be tuo reglar longunges oven z(91].
Theora The class of nagula s
Under nion openaton ie if A andlangvages
A, are
is closey s(a.a),)- (4,),5, (n,)
languages, then AJA is a ngobe anguge
proof ke ctat state of both te DFA,
Shce A, is a regle langunge , tet DFA M,
re cogni ses A,:.
yF-{(e,)(,n) ¬ Q and 96 F, or eF?
whene. The state contans the acept shte
aCcept state
4c) DFA.
Sini lady , snce Aa is a gle lngg tel DFA of te
n
Now constwcd a new DFA M 4ht wll
neglae lagge Proed
ill atogoize
A,UA, whene
M (e, 2j8,%, F) EX ConStrwct a DFA fon l= fw stats ith o on
w has even no. of o's
So L= L,ulz
D) 8, the teansi on functon is defned as follows
et (a,) be any state m e ad ae i,then
Q1
( lo1 Reiecked
001 Accepled
(DFA M, fon L) (DEA M, for L)
L)
Now Des) a DFA M=(Q, ,ay F) fron the (DFA M fon
DFAs M My that will recognize L, ULy3
Intensechon operaton
no. of Os
f(e,n).(a,nJ, (4y,),(4,),5,) th O cnd eren
L e fw Btats
and eL
L,0Lz n|eL
In Indensechon opeahon,
?
1
F I(eyn))seF, and
both te states no
74, 323 A stde ill be accepled ife
(Transiton Table) acceptd.
So
Desim DF A M, forn ,:
0,1 Conplement penation
0) 1
of wjs not eren
Ly f length
DrA M, fon L: prroess
Lyflength, of wis Enen)
complenet
9,1
Conplenent
-(6,,n), (o,n), (3,n), (%y7)
o,1
o,
So
The NFA is a 5-tple (3,s,Q, ,,f) whene
Ex
o?
2) L {w ends with
CNFA)
(Ora)
eyuvalet
automata
’ Two fnte
-fe, o1 ,o101, .....] the sane
equivaden
Can be
NFA
both DFA DFA is a NFA
-) So (Defavt) Evey
) DFA -) NEA Eveny NEA
NFA Can be
(Convet)
) NEA ’ DFA Conventcd to a DFA
of NFA to DFA
-fe,o, 1, 1,oo1, o0), --] Con ven)on
2,5,9.) )
1 Consideno,1te follny NEA N, =(a,
O,1
det Mi be the e,vivlemt DFA oF N,
’ Aften 1. hee toill no
(vo) whene ,,)
M-(e',e,5,,F)
)Pe'pQ)-{e,a), i3, ), i4,3,)3
s(4,8),°)
* - 6(119) 5(a,) ’A
a
B Here iA,B3 s
Unneachable stete.
DFA M
DFA
yF-2:],i%,,43] o,1
B (1
of
This DEA should hane &no.
union af the ddl But it hag 4 no. of
NFA. Uneachable stteg e
1V) .'-9, ie start stete of DFA =start d {r49), 14,0], i6, 0],14B,b1)
NFAae
V)F-R]REQ and R Ognton s te acept s
NEA N
-TThe Con5twcted DFA sl) ecognize the aag
A and hence both He NFA and DFA