CGF and CFL
CGF and CFL
SIMPLIFICATION OF CONTEXT-FREE
GRAMMAR
Context Free Grammar
• Input:
• a*b+c
Step 1 Step 2
Step 3
Step 4
Step 5
POLLING QUESTIONS
1. Which of the following statement is false?
• P{S → CD C → 0C | 0 D → 1D | 1}
2. Which of the following statement is correct?
• Reduction of CFG
• Removal of Unit Productions
• Removal of Null Productions
POLLING QUESTIONS
1. Context free language are closed under
A. union, intersection
B. union, kleene closure
C. intersection, complement
D. complement, kleene closure
2. If G = ({S}, {a}, {S -> SS), S),
(B) Nonterminal V
(C) Terminal T