Professional Documents
Culture Documents
Flat Set-1
Flat Set-1
0} is not ceqatar language, Awume tet A is reqator hergaogtand ciume prnping {eng th e-T oe of b= ate! C= aagrasa bblsbbbh x Y xQoue | it Sex rhe Seanaaaabbbbedh ea YD lwlso 3) bxy/=lxp Sane 1) aes S= xy F Aaa maaan anna bbb Lbhbly Ma [ ‘ ~ ab ¢€A ht ae 3) Ixy] - 2
Cat qo > UWezatqya By using the Ardens theorern, We act Sub €q,0, @ eq @, We 9% I= cbs b+ gat > 4, b+okb'+ Glard) Bq using ‘the. Arden's thee» qa = broth (ath) an , yeSSiON » ™ ee a arbre “a by (att) ,APA] consinuce tet and PINE Linea qrammar fer tre afen NA. ° | a4 Ores on rere Miner Qrarnmay Gx) Left ~ Hea Reqular Grasemnas : A qammary Q= (TSP) S Said 40 be keke —Kenent “AR cy productions axe OF the HUN % ae, 4>* | where MBE and xeTt Leet -VineaX rarnenert ap 44-0 aa 900 ao at on 9 98% i at > 9:0 a3 > aoe | aa > wort a3 7 0 Rignk —Wineas QromMey Coy) Pgh Viner Requlay Grammar + A gxamnmnat Qe (TSP) BW Sold 49 be Fann - Means FE an productions are OF he FO FAKE, AH uinete MBEN and xe. BRAK —Wneak Qhasrimax + ay Ov > 0-40 ao Be aa 8 aa O48 as 0:98 ar > 4.00 ya > 4%4{B] Apply pumping lemma for language L={an /n is prime} and prove that it is not regular Atiume Lis regular language » pUmipicg bengly pac al ey ae ae past S =rayle = aaaaa .a> Eby 2) ty] >a S= xyes 4 = BaaaaaA TO eh, 2) ty) So 3) [xy] 2X
Gver lonquage is het Vequtons5( A)Explain step by step method to prove certain
languages were not regular.
‘The Pumping Lemma is used for proving that a language is not regular. Here is the Pumping Lemma.
ID is a regular language, then there is aus integer n> 0 with Uhe property nat:
(*) for any string x € L where |x| > n, there are strings u,v, w such that
(i) 2=wu,
v#e
i) |uv| 0, uvixyiz € L.
S08
Applications of Pumping Lemma
Pumping lenmua is used to check whether a granmuma is conteat fiee ur nut, Let up take an
example and show how it is checked.
Problem
Find out whether the language L = {xnynzn | n> 1} is context free or not.
Solution
Let Lis context free. Then, L must satisfy pumping lemma.
At first, choose a number n of the pumping lemma. Then, take z as On1n2n.
Break z into uvwxy, where
lvwx|