9 Regular Grammar.pdf - Regular Grammar and DFA Dr D P Acharjya Professor SCOPE 10-Aug-17 Dr D P Acharjya 1 Regular Grammar Let M =(S s0 A be a finite

# 9 Regular Grammar.pdf - Regular Grammar and DFA Dr D P...

• 8

This preview shows page 1 - 4 out of 8 pages.

10-Aug-17 Dr. D. P. Acharjya 1 Regular Grammar and DFA Dr. D. P. Acharjya Professor, SCOPE
10-Aug-17 Dr. D. P. Acharjya 2 Regular Grammar ° Let M = ( S, Σ , δ , s 0 , A ) be a finite automaton with n - states. Let L be the regular set accepted by M. ° Regular grammar G is a 4 tuple G = ( V N ,T, P, Q 0 ) ± V N : Finite non empty set of variables { Q 0 ,Q 1 , Q 2 ,…., Q n } ± T : Finite non empty set of terminals. Say a T ± P : Set of productions of the form Q i aQ j or Q i a ± Q 0 : Start Symbol
10-Aug-17 Dr. D. P. Acharjya 3 Construction of Regular Grammar for DFA ° Let M = ( S, Σ , δ , s 0 , A ) be a finite automaton. ° The transitions δ : ( S × Σ ) S ± δ ( s i , a ) s j ; s j may be a final or non final state. ° Let the regular grammar G is a 4 tuple ± G = ( V N ,T, P, Q 0 ) ± V N : Finite non empty set of variables { Q 0 ,Q 1 ,…., Q n } ± T : Finite non empty set of terminals. Say T = Σ ± Q 0 : Start Symbol ± P : Set of productions defined as ° Q i aQ j if δ ( s i , a ) s j and s j is a non final state.

#### You've reached the end of your free preview.

Want to read all 8 pages?

• Winter '17
• sathya raja shekaran

### 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