Context-free grammar and derivation trees
AnswerA context-free grammar is G=(V,Σ,P,S), where V is a finite set of variables, Σ a disjoint terminal alphabet, P a finite set…
Read more →AnswerA context-free grammar is G=(V,Σ,P,S), where V is a finite set of variables, Σ a disjoint terminal alphabet, P a finite set…
Read more →AnswerStart with S and apply the recursive production once, then the terminating production.S⇒aSb using S→aSb.aSb⇒a(ab)b=aabb using S→ab.There is only one variable at…
Read more →AnswerA finite automaton is an abstract machine with a finite set of states. It reads input symbols one at a time and…
Read more →AnswerAssume the binary input alphabet {0,1}. The output depends only on the current input symbol, so no previous input needs to be…
Read more →AnswerBoth machines recognize regular languages. A DFA has exactly one successor for each state-symbol pair; an NFA may have zero, one or…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.