Module-4

Download as pdf or txt
Download as pdf or txt
You are on page 1of 26

P*"lr.

*['<-t sb
c-on]ttt' - F]-u ll.r^a"'unu
6b 1-rnri 4-ee.^o^ q tb (J.,o: IJ..ZI elry"f
_Jko ?o^t
C^pq r; *L'cA a'lr
Ctru lr,lirr"u^f C) U ?*-"jijl
U
1 ^^
"t41^" ft + BC vL A d hs'k/r-
P^-Jt a.le 6b uf ^ '
A,B u( d.lt v€r;L,r, h 6 r,g a Li,*^l^4-l
VA{, fet-r ..S C^lrd Cf.rnnl tc, lls{n,.u.J tru^ [ t U f )
no XQJ +^u-r- , & '\kl Uo rz"V't-r- a' 'n,.'r'-rAlr 6h
P-I^dgitt^b.'c-t,,*l,nl..cAN&-il"r.n,*rd'<-|
uht.^l nD" \ru-t':6t^'l Y : . * * "zr-t;alV
l) rS4- r.^41'
Fo €I'i^,fi *i"r tls \'"^t"t .'ir
,
-t't""F e^ ^€'l- qyz* 1
*f
o& lil^^j ^aJc.
t t'-^"'t +*r
lJ;s"0'
d.J,c t^,j.,s., db o\ * ^^.1^-'l
**d
Gv.AJb.J '

>) *l ro,.r-rt €-U;."J6' e-?ry4c ,+"+'- "t tt. fi**


A + € 4€^ 4o-.^r rnaria.glo- A
U , ^ 16-
%vqz- 6t- t-14-

I r,..r<- nn"^4f €,U^^,1


4 B [*
^)J' -l"'-t't- trt*Jg
Vl14'r'
,
aJtt' + 2< 15
t* -r A

Et:r.;,rt"*1 os,-o-t nls s6.& "lr : \.!--

a ry."+"| x ua,-f*f"(-
^x- )
ot 1*^av1,^,,,d,- QoCv,TrP,gj -U-Yf ^ Lc..t-
'dgi'.a,h'.s.r * +l^, t-- 3 5 o( x P 3*' -r{-trr"
rd q n
rl
l(i
T\-: x
No b e' ; Lt +t"t" '^^^&
u
V o,{ T
"|t.at 6)
?-t +t a- g!-"i'a-\b,
b*':&r'^f*-R o^ tt I * tf 1'-3P &
, )aaa ta +i
+14- f qr- 4
tJ ,.-ui u4^t^l , ^)9 4 ^ i Y":;;^
/-oi;; ,,*su! fu'^lct'u f*'Lgry
l,^rrrrr\,o'l
o
$ot -
q
l^-1?*1 ,#;3:
j

,,----.-!-

--*:-*'..
i' tr

hr*^)t-l +F%r
.x) - dos,J;
ll

-v'
,.n \\ bq-

0t ; €L^^iJJ
ryt l"a? f,i *t Z
b-ee ,r'? ,Qfam4
ucj- C-l-'^+'tr- L^9€.

fiaP '15 UStgY?tJ ?l+,l,,:n+r ,

S+ A0la-
A aq

{5: s6?' .F;d +^+ q,* q q +r-e [orad'* l',,r*.' *{*cr"


"f
6t t-Lo*,^n'nolt
u)+ fr 6r,\d- \-*^t .

Pro,'d1,

S,A 3-+ a-
N )CL

3rA ljq
Ado.
il
rl
j'

1l
ti
6,' C r, ,I'-,-P',--S)-
!t
il -
'll -

_- Ji_ l,
Y
I
I

!l

\| i

-----l
ir
It

t r.rt-l..! g,rs h+.^fql( 1,,o +6t n\Ac^.rr^^e-t- :

s--*tJE t.

B -l g.g_ ___--
I
n P ,-> o-bl ea"
_E_aag

h,4-D- A-ra

A,D, I , S

ot$tf ffoe*r--q* = tU*r, @


=-

. ... V, r_I lrg, E, c


]
&kgj
.

---T.=J
9+ aA. S a a.*la E
^-r-=-?13"_
_cr +\r _W__qpLd
CL

:1r-rg_s)

q
D-: 6a.
G1 q.E
A,&*p-q-*- __ 5n h,E ,0,€_ 9-r&
A,B.D,C

'l
lr 9--r,S) - --\
I

I
.t
-l_'l
.b,1 t
-T----.-7-
I

3-raA
A + a-a+B__ 5A
A 9 -A^, ft
=_qDlu
ri

'I

S, ,{ ry'Ll-i-- fu'-.hr{
lJ__

'1
il

I
.Jji=il, tat- I{t\ea^s-ds-+so
t'i Fto..tY ?-"".111{

t-
o'ddd
,t, - --e+:;;luut"-
_--- t_ - il ' , r'" s+ et o llo ' ?

:{
i!
-

iF'
VI

-€a-l Bb[4ft
S.A

5, *, I

v'i h .g. A
tt=1q,bI

.lt
-\I I

t
I

It
ll
d;;J*7
A p---f- a "^ 6.t ue frt*n A a t ,J -; r-ci ^4-btt
-V

rn ^ cFq , u,rJe.Js a-v. 47 S*iA U &r^t^*-a b(-o/t


t';<fr ry t'tt'\
,tu&r^r^e-
+.- g{z.q}'HO^^r"d. J*pPx'<-tn'ot
6. . g,o*,*ar q d e<'r "*t u-^-f!
t-"a
'€, *tr^'*L e^s^hi?f- e- - Suth
11-r-
e" .* F*J*efi'{lS'
L-@e C'o^^ bc l-s'*o^e'd

S) b4 Ctq. A h-J
D<*e '. lLr 6= Cv, r, p, a arru.J-,t'|'1"rrt

- 6h
P Lts -fio-tn
A-+L
q L^\LaJ
qf P 1t't &G J.d-+.d-.t'sn t G{

ftr "n
*4L
.il4.", R Ll a, a.,rll o-Ltr- ,cv&r:abLo '

ef**r r", x'u 'rr w\.ra- ri 4*++ ds q& lo^rds "r tr:

haL
l -sCv
-.-
o44 :fl+- \t?^*)Jt* b, c or'''
ry e*?4s
i

h4ltor.'lblc- \fu;' oJ,Itu, lt +h ry q ot Pr+-J.rci ^


l.-r13c
Art betti ts-c
|
ai-q
.__. -:=-

a.l ho q,-t\a.!\l- \&$G!\4


^. ..
t

:---*""- "- --^-- ".t

4-rsse---al=:: %\a'4e4,.

!er3cfU _-
_
g_r_ u\e-
t-
_C a cJE I
Dad

B+&

cdr

-P{rds,r99 -?4rW \-

3 + ABCcr-

ctb
- ---FJ_-Eclb- -e= acl sl

lt!-- -ffi-**=f "':(


-[
- -ii* -- --:.-- rl' |
a,b,?,d+:^ AnJ B^[ a,
il ?', t sa F{8ca"fq*\'*;i.B*\*{ lbo

'/ d
V'
M--e--rr'alt-rAb-

9:-t-ecdsJe-eBJsaeIB-^'AJldl
e Le-s\A*-l4B ---
A-r OAt-loe
--N- Ltglzo--
vzreLe)r-
ii -- batg-
_BdBF_

-w Mjll,rt,pr-!)_fu 1r

fs*l*ll -

I.'
El;,-,lJ U-rtl't'
U-t
bc*ln
^)ful,r-

saAr '

ffig " 2-
t
C-rD
+b D-€
D-r b

3+ iJ ues.s,-
ltr @

g,- dl*U
&,'^lc- ,D5e

Urc 9.r"e *r'hl


cbpL>e
C+ -t l*ul uc

t',"nq- bae , c\O- g*>d

15+ bldl*ul b

g.4t'-az--\- OS+gnDCd
-(J^^.t t,9 S^l'"O

g,A,B C D E

p, 1 S->*g
A 1a.
bldl aalbc
c-> bcldlA6

e-r dlab
S tl ,I^c 9+6*

4i;^"I, u.n-r*
9-l Ao
:- -B-"lbL-
Aaolrll s
\

i! n jA
p---
- -- -
iJ

ii 5-M+
s, a?f5 *e\L--*-
ii f^Js b-at

il
'il-
-)

I
I
I

Ir ol\>\ rn

+- WLtLy ry'-J''a '


/+
LL'r.r..' tJ-".;.1-

Db
e
E+4b

c
D+

.s5 a

{.4^l"alb
D g e

D-l clld

-
_---E.%
e4a
t--
i
F
I
I
I
'r- I
-

i
:
+-----
t:l
l^ tv', Tl , p{, j tr";
i,r
l-- ?

v'=t g, A,B.L,D.E
v - I , .-
, ) - /,
I

r
e -: +alqsltlta

Pbla$l d

-l a.b
s--s-_
-it--
ar . n i
(J5
^i
O v\AAW
t. -{1-.--
Net ,',t\4.1 fo-t,arr
#:

be gg-j*&:*<_ -
b -g.--q -.
e+*---\E$4tte
i
L?g- -^I{-k- --A---qL---_a-
^- *la},irGjg--,-€l + .l a. 'kt ", . ^al
i __@_v,p _ wd. gu--gA*-,b-+ .-fu_a{fv-r0l^f4*
i fiU tz b&
Q,ol-ti {n
*-^r'd L- ht
; o|*r,rjp,,,
qL{,jg11 h{'ut *
r)+{.,rra) W^, 94- Wf
CNF :
lr
i:
' ---v Lv -v - - t-tl_- -tpry-{.".-,1

'' ^h
L'ltl-L
I!: - u Lls L)f,rJ: %",*bDl
3 .
0
s;-la"al b,'B
+ [\n *fu
%rlo
23_

r.-C^ch c,^f ch olt- rwt- 6 CNP dat.,"


"94
L+ B'o A-4

Ar A-.4 . A BoDr

W B,BIRA ,
{t l:

ia
Y
I
V
,+
tli fu?no"n? g^a:rr"e&_Ige__

1:_.=l4ls.Iq#-l&

-_sl-dEtr

SaAsSlc
^l
--__---r-
A-: or.A S
&_:_ s usJslbh

itu sl.idt49 g:Ee{a.Lld


li@_drdl+E t.t--i+ - pd.g
ln=r---
i@gr^t q{ -#s:rlr+ -Ua CJ.J p .

-ji-
fi
'lt
t:

ti:l
1,
it

---;an4nl',e-jbg&_&-^n-_}4J.$Eb'-,oo@-
*_ji -_a-0_--
-ggr44,&_ _ol__ LAt __L'41g |\4td h&=h*t rbq-" r.{

ii dh +t4 A;clf X^J tJ& O ro\ D,,^^ rn

:{-rrp-9,!) f:=-s--crq--vfs-cFr{ E g 4L
d) -jtls_
"t
oreg tlt

f4*-99J -e'J-L-€- yn i.u ui-+t{f -q3g-"1-orSi


- illi r"'ffr- u^d r-'a- aU +x" F--lr-*t -&-'9--_ts{rd13J---

-b---QdF-:

g -; I Al
-r\
ll -t
i,

---i-------*- s-JAg*r
.l

" - - ^ l-:--
tv r lFl

,. ts-a
AnAoRl R,nA
;A\al^

- li - j
I

B--:-A-r-44
ii
ii
Ar-j|
,i '

----TF._-_- Au -> O
t:
,l
I

r
I

I
Pumping Lemma for Context-Free Languages
The Pumping Lemma for Context-Free Languages (CFL) is a property that all context-free languages
must satisfy. It is often used to prove that a given language is not context-free.
Example: Prove that L = { ww: mid w ∈ {0, 1}* } is not a context-free language (CFL), using Pumping
Lemma for CFLs.
Example: Prove that L={w ∈ {a,b,c}* : Na(w) = Nb(w) = Nc(w) } is not a context-free
language .

Proof:
Example : Show that L={anbncm∣ n, m ≥ 0,n ≠ m} is not CFL using
Pumping Lemma.

Example: Prove that L={aibjck ∣ i = j or j = k } is not Context Free Language


Closure Properties of Context-Free Languages (CFLs)
Context-Free Languages (CFLs) have certain closure properties that define their behavior under
operations like union, intersection, and complementation. Understanding these properties helps
in determining whether a given language formed through operations on CFLs remains context-
free.

You might also like