10. Consider the following CFG: Is the language generated by this CFG a regular language? If so, give a regular expression denoting it. If not, prove it. 10. Consider the following CFG: Is the l...
Consider the following automaton: Give a regular expression for the language of the machine.
Prove that the language given by the CFG below is not regular. S + PPQ P + OPPO | 1 Q +0000 1 Make sure that you give a formal proof with every step clearly erplained and justified with sentences (as seen in the tertbook), do not write just a sequence of mathematical erpressions.
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that are pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
determine if the language is regular, context-free, Turing-decidable, or undecidable. For languages that are regular, give a DFA that accepts the language, a regular expression that generates the language, and a maximal list of strings that arc pairwise distinguishable with respect to the language. For languages that are context-free but not regular, prove that the language is not regular and either give a context- free grammar that generates the language or a pushdown automaton that accepts the language. You need...
Automata theory Q1: Assume S = {a, b}. Build a CFG for the language of all strings with a triple a in them. Give a regular expression for the same language. Convert the CFG into CNF grammar. Q2: Assume S = {a, b}. Build a CFG for the language defined by (aaa+b)*. Convert the CFG into CNF grammar. Q3: Explain when a CFG is ambiguous. Give an example of an ambiguous CFG. give vedio link also
Prove that for each regular language L the following language is regular: shift(L) = {uv | vu ∈ L}
Let G be the grammar: Give a regular expression for L(G). Is G ambiguous? If so, give an unambiguous grammar that generates L{G). If not, prove it.
Give a Context Free Grammar (CFG) for the following language: L = { w | the number of a’s and the number of b’s in w are equal, ∑= {a, b} }
3. Create a CFG describing regular expressions over the alphabet {0, 1}. You will need to quote the regular expression operators and the template given you has them quoted as terminals. We expect the grammar to generate the following syntactic constructions: • Union via "|", for example, 0 1 "|" 1 should be in the language generated by the grammar • Intersection via "&", for example, 0 1 "&" 1 should be in the language • Concatenation: any nonempty sequence...
Find regular expression for the language accepted by the following automata. Find regular expression for the language accepted by the following automata. gl a b q2 q0