At Tutorail 1 Merged
At Tutorail 1 Merged
Date
Page
Tutoial No.1
s.wike cown the zegulax expzess ion fox the tallowing bngueges?
L=ab, a¡b, bah, aabbab,.. over Ea,bË
Ans R.E =(atb)"ab
L=it,1io, 1111i1oiio__3over E-f0,1
Ans:'= fa,bc
?=aaabac ha, bb, be ca_cb,cc
¿3{aag, aah aac, aba,abb abc, aca, acb ac, baa, bab, bac,
bba,bhh bbc bca, bcb,hcc cac,cab, cac, cba, cbb, cbe, cca,
ccb, cec3
Q.3pene the kleere Closuze Positive closue and Power of alphabets.
Ans:-Dkleene Closue:
kleene Cosune is he infinike set of all possible ings ot all
possible stings of a possibe lesglhe incleing E.
It is denoked by
So *= °yEs?uss
for eg Over E-0.1
clAsSMate
Date
Page
Positive Closuzei
osibe closune s Lhe iofnile sek of all pssible songs
of oll possible lengths excludig E
It is denoled
Sa, =¿*e
So, Et= s'Uug°u,
LHS=1
RHS=1+1 21
2 22
Let n=k
1+2+ 3ttk= ka) be ue
2
Let n=kti
LHS=142+3t.ktkt)
LHS= (k +) (k42)
2
RHS= k (k+)
2
LHS RHS
ie 142+3t.tn =nntt)
Page
þEibonacci hunction:
Bose Step: ox n=O ,n=l
fo) =o,f)=1
Recus sive Step : fo) =£n-)flo-2)
AnsiL=e
The language of stongs of Os and is with equal nnumber of
leach.
Ans:=o1 i0, 0011, 11o0, oo0111
)The
Ans={01, oo11, 000111
Latb
Q aa ab abb
classmate
Date
Page
Tutoial No.2
9.1Give the omo fosmal definilion of DEA. Define Extended
toansition fmction (s)
Ans:-DEA:
A Detesministic Finile Automaton (DE) is dehinel by aguintyale
6-tupe) as (sESgo, Awhexe,
S=fnite set of states,
E-finite set of input Symbol
6=A tansihion tunction that maps
go=A stast state ; goé QXE9
F=set of inal state;FE Q
Page
RE=}a,bj"{baaas
AncL=baa abaaa bbaaa, abbaaa
Tzansibontable:
&6(8(qe,a))a)
-gtAlaceptame Skale)
4 is end stale so il s
X
X 2
ASSMAte
Date.
Page
Taonsition Digi
Trursbon Table:
Stales
X X
N
X
N2
=s(s*(Ma),o)
bJa*Cgo,olal)
cdassMate
Date
Page
Tutoziol No.3
.The inibal state is go, ond the selt of acep hng states is o4
This NEA accepts stings hat end with "1 since these is a
Eronsition fron gn gu to qi on input "y"
bNEA-A taansi tion
Ans:-+ A NÍn-Detesministe Finile
is an exkension of a
Automtonwith epslon tansiions NFA
agulax NEA, allauing toansitions on the emaly
sbaing
A
lepsilay).
NEA -A consists O a set of states, a set of
input symbos,a
ransition tunctice, an initial State, Q set of acepting states, ond na
epsilos toansbons.
cassmate
Date
Page
oNFA-4:
oSet otstates : Q
Exarmde:
.Consder an NEA-A wth stutes lga,q-g1, input sypabols foif,aod
20silon txnstians denated hy 4, The bansibon funcbon d s dehned
las tollaws
fCqo.)=igaj
S
is$ s
NEA
DEA ansiion table:
pgs
*pos ps 2s
Pgs ps.
po
DFA
+123123
13
13 123 13 f33
13 12 12 2
12
42311 >1
1
b
tebleboaa_hon DEA tble tensiton >NFA
NFA
leg same accepting
lhe FA an
daw tomethod
souctio subset using NFA Qs
below gien iguze each InQal
DFA
1
bletaansihon
: DEA
NEA
Page
Date
classmate
obe
classMate
Date
Paga
Obab)
=f34,6,23
=1,3.43
lÛ4d-d6*as).-bli,a)- 4s,zj
=is, 73
=L,2Buí9i
classMute
Date
Page
O&(10abbab)
6,aba)
S*(1,9)= S(o*(1,¬);,a)- d(i,a)= {4,6,73
d4,4b)-6((1,),4) =6(4.6,73.4) =l4) Ud6,b) USb)
6(2,aba) =8,33
z66*(1,sb).a)2s(i8.9t.a)=d(&,9) 0d(9,9)
classmate
Date
Pnge
abah
The NFA-A cbes not accept the gien stoing
.aacbbb
The NEA-A acepts the gien sbig
Q. Find
oA23)isi
A ):
A(13,&)
.a)
Kabab a)
=f23
=S13
S4Gbaba)-fa,obob)a
=ACA,aba)b)a
-dCCCL,ab)a) b) a
=d(CCL.ab)a)b)a
-dlELaa)a)b)
=
classMate
Date
Page
Dsaw an FA
acep hing t seme
closue (A,o)-Aa {B,c,DEA)
language
E-closwe (A,)= ED
E-closuse (D)-n
E-closue (Eo-l3
E-closu (ED-igs
clAssMate
Date
Page
whee
*fs,o) = iga3
NEA-diaga
Õ,