Session-18.pdf

# Session-18.pdf - Procedure to prove a Language is not...

• 3

This preview shows pages 1–3. Sign up to view the full content.

Procedure to prove a Language is not regular: 1) Assume the Language L is Regular 2) a FA with 'n' states 3) Take w 4) 5) i z L 6) Our assumption is false, so L is not regular. Problems: 1. Prove that L = {a i b i Sol: Assume that L is regular then a FA 'M' with 'n' states accepting L. Let w = a n b n & |w| = 2n > n. = a n-1 ab n = xyz, where x=a n-1 , y=a & z=b n Consider xy i z for i=2, xy 2 z = a n-1 a 2 b n = a n+1 b n L xy i z L, for i=2. Our assumption is false, so L is not regular. 2. Prove that L = { 0 p / p is prime number} is not regular. Assume that L is regular then a with 'n' states accepting L. Let m be the next immediate prime number after n. Let w = 0 m = n 0 m-n n and z=0 m-n Clearly, , |xy|=| n | = n( ) Consider xy i z for i=m+1,

This preview has intentionally blurred sections. Sign up to view the full version.

xy i z = n ) i 0 m-n = 0 n(m+1) 0 (m-n) | xy i z| = n(m+1)+m-n = mn + n + m n =m(n+1), a composite number xy i z L, for i=m+1. Our assumption is false, so L is not regular. 3. Prove that L = { 0 i ^ 2 / p is prime number} is not regular. Assume that L is regular then Here ----- (1) Let w = 0 n ^ 2 & |w|=n 2 > n = 0 0 0 (n^2 - 2) = xyz, where x=0, y=0 and z=0 (n^2 -2) Clearly, |xy|=| 00 | = 2( (from (1)) |y| Consider xy i z for i=3, n 2
This is the end of the preview. Sign up to access the rest of the document.
• Fall '14
• rani
• Prime number, xyiz

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern