Question
Download Solution PDFConsider grammar G with productions A → a | Aa | bAA | AAb | AbA
Choose a false statement :
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFConcept:
A grammar G is formally defined as a tuple (N, ∑, P, S ). Such formal grammar is often called a rewriting system.
N → Nonterminal symbol
∑ → terminal symbol
P → Production rules
S →start symbol
Explanation:
Productions of G: A → a | Aa | bAA | AAb | AbA
N → {A}
P → { A → a | Aa | bAA | AAb | AbA}
∑ → {a, b}
S → {A}
Option 1: TRUE
A → AAb → AAAbb → aaabb
aaabb is in L(G)
Option 2: FALSE
A → AAb → Aab →aab
Therefore abb is not in L(G)
but abb is in L(G)
Option3: TRUE
A is start symbol of G
Option3: TRUE
A → AAb → AAAbb → AAAabb → AAaabb
→ Aaaabb → aaaabb
Therefore aaaabb is in L(G)
Last updated on Jun 6, 2025
-> The HTET TGT Applciation Portal will reopen on 1st June 2025 and close on 5th June 2025.
-> HTET Exam Date is out. HTET TGT Exam will be conducted on 26th and 27th July 2025
-> Candidates with a bachelor's degree and B.Ed. or equivalent qualification can apply for this recruitment.
-> The validity duration of certificates pertaining to passing Haryana TET has been extended for a lifetime.
-> Enhance your exam preparation with the HTET Previous Year Papers.