which of these answers is correct?
NUMBER 1
NUMBER 2
also please give the reason.
Thank you!
Solution:-
Correct option - Number 1
Grammar represented by Number 2 is incorrect because it can generate string ababa which is not acceptable by the language L = { ab^nab^na | n>1}. The minimal length string produced by this language is abbabba which is not so the case in Number 2 the minimal length string produced by it is ababa.
which of these answers is correct? NUMBER 1 NUMBER 2 also please give the reason. Thank...
Construct a context-free grammar for the language L={ab'ab'an> 1}.
) Construct a context-free grammar for the language L={ ab”ab”a | n> > 1}.
Construct a context-free grammar for the language L={ ab”ab”a | n> 1}.
With Proper explanation and example. Construct a context-free grammar for the language L={ ab”ab”a | n> 1}.
Construct a context-free grammar for the language L={ ab"ab'an> 1}.
Given the following Grammar G, S->ASB A -> AAS | a B -> Sbs | A|bb (a) Identify and remove the A-productions. (b) Identify and remove unit-productions from the result of (a). (c) Convert it to Chomsky Normal Form.
Consider a grammar: S --> | aS | SS SSb | Sbs, Where T={a,b} V={S }. Show that the grammar is ambiguous. What is the language generated by this grammar?
Consider a grammar: S --> | as SS SSb Sbs, Where T={a,b} V={S}. a. Show that the grammar is ambiguous. b. What is the language generated by this grammar?
State the quadrant in which lies. sin(8) <0, cos(8) < 0 OII III OIV 8 If sin() and 8 is in the 1st quadrant, find the exact value for cos(8). 9 cos(8) - > Next Question State the quadrant in which lies. tan(8) > 0, csc(8) < 0 01 OII O III OIV
For some n > 1, let T E End(Pn) be given by T(p) = p'. Show that T is not diagonalizable.