01-18-2012, 02:37 PM
[FONT="]Theory of Automata (CS402)[/FONT]
[FONT="]Assignment No.5[/FONT]
[FONT="]Deadline[/FONT]
Your assignment must be uploaded before or on.
[FONT="]Rules for Marking[/FONT]
It should be clear that your assignment will not get any credit if:
·[FONT="] [/FONT]The assignment is submitted after due date
·[FONT="] [/FONT]The assignment is copied
[FONT="]Objectives[/FONT]
Objective of this assignment is to make you able to understand the following concepts,
·[FONT="] [/FONT]Defining Context Free Grammars for Different Languages
·[FONT="] [/FONT]Null and Null-able Transitions and Regular Context Free Grammars
·[FONT="] [/FONT]Chomsky Normal Form
·[FONT="] [/FONT]Push Down Automata
[FONT="]Question No.1[/FONT]
Give CFG for the following languages,
[FONT="]Question No.2[/FONT]
Consider the CFG given below and find Null and Null-able transitions (if any) also remove these transitions to give new CFG
S ---- > ABB | CC | ABC | AC
A --- > a | Є
B --- > b | C
C --- > ab | Є
[Here Є means null string, as in CFG’s we use Є for indicating null string instead of ^ sign]
[FONT="]Question No.3[/FONT]
Convert the CFG (Context Free Grammar) given below to CNF (Chomsky Normal Form)
S ---- > YYY | ZZ | aa | bb
Y --- > a | Z
Z --- > b | Y
[FONT="]Question No.4[/FONT]
Design PDA (Push Down Automata) for the language given below,
(ba)n(a)n n = 1,2,3…
[FONT="]Assignment No.5[/FONT]
[FONT="]Deadline[/FONT]
Your assignment must be uploaded before or on.
[FONT="]Rules for Marking[/FONT]
It should be clear that your assignment will not get any credit if:
·[FONT="] [/FONT]The assignment is submitted after due date
·[FONT="] [/FONT]The assignment is copied
[FONT="]Objectives[/FONT]
Objective of this assignment is to make you able to understand the following concepts,
·[FONT="] [/FONT]Defining Context Free Grammars for Different Languages
·[FONT="] [/FONT]Null and Null-able Transitions and Regular Context Free Grammars
·[FONT="] [/FONT]Chomsky Normal Form
·[FONT="] [/FONT]Push Down Automata
[FONT="]Question No.1[/FONT]
Give CFG for the following languages,
- anbm where m = n-1 and n = 1,2,3…
- anb2n where n = 1,2,3…
[FONT="]Question No.2[/FONT]
Consider the CFG given below and find Null and Null-able transitions (if any) also remove these transitions to give new CFG
S ---- > ABB | CC | ABC | AC
A --- > a | Є
B --- > b | C
C --- > ab | Є
[Here Є means null string, as in CFG’s we use Є for indicating null string instead of ^ sign]
[FONT="]Question No.3[/FONT]
Convert the CFG (Context Free Grammar) given below to CNF (Chomsky Normal Form)
S ---- > YYY | ZZ | aa | bb
Y --- > a | Z
Z --- > b | Y
[FONT="]Question No.4[/FONT]
Design PDA (Push Down Automata) for the language given below,
(ba)n(a)n n = 1,2,3…
