TOC Notes-1
TOC Notes-1
callld An e- NFA :
A traa:Hon an Callrd an E- trunsrm,
/Hcei as epai lon brans? hon) i) y. Hure ik a tram:Hom foon
auottr without (ie, na dew ted
a nput inpu mpys emp 4tg
calllel t-trans >HM. tx.ampl, (omaider the FA
b
b, e
t- cLosURE:
e CLOSURE () 6 eac as
t- COsU RE
k- loSuRF Ca2): ,
Cuimn State Daput Repraenturon
No S (ao,a)= o.)
b s (ao. b)2
..
a
C
a
e) a
npat agmbol.
then we orte
átate
a;fo C; aud ;fo k on an nput
Change
ten e Jrike
ymi a,
Noat slale
Reprtatin
N
C
"s(w,,j:
The G-NEA
qumhaple
M: (, E, 8, b, F)
Ashere
non
funiton
E UE) to 2° Bacd on Hu ur(nt dtate ture can be a tranitrm
to othur statea oith ox withot any nput ymboli.
flacocd
by ¿e
.
é NFA to DFA
é NFA
9wch a can beyimed),
Ag lk.
Ue trants
DFA. Then, tua & tate
Solus
DFA i,asp: é-losURE (0): of
8 (A.a) : é-cosURE(&
:e- clo'sU RE (b
(A,a)
lo, a)
)
)
sun inpur is a
&( B.a) :t- cL0sURE (SN (B,a)
(En (B.))
S(8, b): t- cLOSORE
:t- LOSURE &n CIL))
t-closoRE (42)
?2, 34,6,4} c
mput)
lo. So cu
w) Hyout,
Her
giring yy
leachable tm
shen Input da ài
: e- cLosURE ( Sn 22,3,4.6,9,a))
: 5, 8, 4, 3, 4. &
- 3,4, 5, 6,8, 4}
:2,8,4,3.4, 6}
: 3,4 6,2.8,?} E
Keachable w Hout
npt (ie-) traMI tt m) are
3?,8,4,3. 4. 6J
y E
.Threfore
hen nput is ai
S (D.a):e- closURE (SN (D.a)
t- cLOSURE (sy3,45,.6, &,4}, a))
: (5))
t- CLosURE
.5, 3,4.8,4, 6
:?3,4, 5, 8, 6, D
when input is b:
&(D,b): 6- O.sURE (óN (D b))
• e- Lo sURG (S3, ,6,)) 4,5,
:?3,8,1,34.c
4374i6, 9.8,9)c
Conscr the stale le]:
S lE a)= é-cL0sURE
:
é-cOsURE (f
((3 (E,a))
u6, t 8, 9t,a))
: (5)
: G- cOSURE
:3.46,
15, 8,4,3,4, 6y
5, S,
S6,b): e- cLOSU
(6n (t,b)) RG
:é- ( (34h,
cLOS URE &N 6,,8.9}, b))
(a)
= t-cLosoRE
:}2,84, 3,4.6
: ?i8,9E
13,4e 6,
Snce there ae no
tuble d thu DFA ik ahon bloo table:
D E
b a
A
b
DFA
DFA.
NPA eqwvalent
tart
& ho the
q€- NFA
e- cLasORF (
SN (?ao.i,4,5, a))
.t-cL0SURE ( 3)
A
hen
S{A-)
nput
:
b:
é- ces RE U (S (A,b))
e- cLosURE (3as
hen put ei
8(A,c) : e oSORE (n (A,c))
.c
The new &tates
below
shown
The trans)frns frm
Cnsdy the ktate [a]:
When inpu
hen Input b:
& ( B,b) t- LošoRE (s (B,b))
: t- clasURE (6n (4 4i93b))
hen npu c:
S (B, c): €- cLosURG (Sn (B.c))
6- L as o RE (SN ,. ( u,))
hn Inpt a :
:- cLOS URE (S (3 f,a))
when nput bi
(2) n +
aud
Ihe t- NEA sk
0, ,..9
<fate
0, ),. ..
8 (A,+) :
e
:E-
é
e-
-clasoeE (SN (4,
cLo sURE (6N
CLOSV RE (a)
o,, ,))
+))
hen npt
S (A,
is:
)
- t
é- cL0sURE (SN (a,
cLasURE ()
B
)
en nput
S
ia O,l.2,....q
-
cLosURE
é-ClasUPE
(S
(S
(A, do,
( ao.a},
,. 9) --9))
t6,y-.
4Jhen nput is
- 6-cLOsURE. (6)
C6n Ce,)
Jhn nput ik 0,2,.4
S(c, t0;1,2,..9 ) é- = CLOSURE
....:...
Conarole the btate (D]:
tere
when inpwt
= E- CLOSURE (N (E,))
Jhen
8 lE,o,1,
nput. is 9, i,2)..4:
G- CLOSURE (uy)
E is tho wu
9btainc.frm A thrsugh
O,,...9
B B
O, ,..9
B
E D
,ty..4
:(e,E,S, Vo, F)
DFA to acept deamal numbot
aj
Z 1t, -,,o, l,2, -.
he Khort state
A IA
stale
the tnal
F:e
equval ent DFA
e- NE4 kst to
e
start s tale
.€-NF4 & 6o the
stort &tatt
DFA
t- losUR E a) ao A
-
a
B
13heu 3npu b
G- cLOSURe (a)
B
en npu b:
S (B.b)= é- (&N (B, ))
cLosu RE
..
Jheu nput bi
B
b
A B.
qüvaieit DFA
Tae
stast Sat qt- N FA & o ttue Stost <hate
t- ciasURE Ca) s,
Qi,4A)
¿(A5)= casOTE
- é- casURE
-e-cleSDRC
(SN
C&n
()
(,
(,b))
4,,4>5, b)
Consrder te €- NF:
(- NFA
i
&
e- cLasURE (P): P
DrA.
Corekat
- t-closU RE (,r)
a
A 4: B..
each
(3) Compute Ahete
frm Hhg foy.t-NFA:
t- lOsURE (a)
e bho DA, NEA nel t-NP+
\:
DFA
a, ,) S,Ne,
Ay
M>(a,
NA is
E,8,
a5
9F)
tuple
An é -
N=(2Z,
hon,
NEA IA
8, as
a 5 tuple
F)
Thore Can
k n an lnput
mre tranwy hm as tase
be eoone o nm ore
tranttns rom a &tate )th
mbel w or
Inpw
re nunnb
fruuwtms Relatvedy'more dra bens
13hen Compared wry N FA
tayto Combel
to cnyuet
Cnpreum.
powtul than DFA
Eie Mre po0 usretu than NFA
ail be in eny Jt wil be
ttate
n
more tan