Module-4
Module-4
Module-4
*['<-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 '
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€.
S+ A0la-
A aq
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
s--*tJE t.
B -l g.g_ ___--
I
n P ,-> o-bl ea"
_E_aag
h,4-D- A-ra
A,D, I , S
---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
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
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
'/ 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
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
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_
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
-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.{
:{-rrp-9,!) f:=-s--crq--vfs-cFr{ E g 4L
d) -jtls_
"t
oreg tlt
-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.