apply arden's method:
qo=qo 0+q2 0+ ε
q1=q1 0+q0 1
q2=q2 0+q11
q0 regular expression is (q2 0+ ε)0*------------->1
q1 regular expression is q0 1 0*---------------->2
substitute 1 in 2 then
q1 becomes (q2 0+ ε)0*10*------->3
substitue 3 in q2 then
q2=q2 0+q11
q2=q20+(q2 0+ ε)0*10*
=q2(0+ 00*10*)+ 0*10*
regular expression for q2 is 0*10*(0+ 00*10*)*
substitue q2 regular expressin in qo then
qo=qo 0+0*10*(0+ 00*10*)*0+ ε
q0 regular expresiion is (0*10*(0+ 00*10*)*0+ ε)0*
substitue q0 regular expression in q1 then
q1=q1 0+((0*10*(0+ 00*10*)*0+ ε)0*) 1
q1 regular expression is (((0*10*(0+ 00*10*)*0+ ε)0*) 1)0*
finally the regular expression is union of q1 and q2=(((0*10*(0+ 00*10*)*0+ ε)0*) 1)0*+ 0*10*(0+ 00*10*)*
Problem 24.3. Describe in words the language accepted by each automaton, and also give a regular...
Consider the following automaton: Give a regular expression for the language of the machine.
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...
(4) [20 pts] Let L be the language defined by a regular expression (O | 1)0+(01 1)). over t alphabet f(o,1, +) (a) (4pt) Write down 5 different words from L (b) (8pt) Describe L using words. (c) (8pt) Draw an automaton accepting L (ideally, deterministic). (4) [20 pts] Let L be the language defined by a regular expression (O | 1)0+(01 1)). over t alphabet f(o,1, +) (a) (4pt) Write down 5 different words from L (b) (8pt) Describe...
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
Theory of Computation need ASAP 2-3 hours 1. For the following grammar: a) Give an example of a string accepted by the grammar. b) Give an example of a string not accepted by the grammar. c) Describe the language produced by the grammar. 2. Using the following grammar find a derivation for the string: 0001112 A0A1le C 0C2 | D Create a grammar for the language described by the following RE: Create a grammar for the following language: For the...
Find a regular expression for the language accepted by the following automata q0 q1 q3
Construct a deterministic finite automaton accepting all and only strings in the language represented by the following regular expression: ((aa ∪ bb)c)*
For each part below, find a finite automaton M which satisfies the given description. Describe M using both a state diagram and a formal 5-tuple in each part. (a) The language accepted by M is the set of all binary strings which contain exactly 3 1’s. (b) The language accepted by M is the set of all binary strings which contain at least 3 1’s. (c) The language accepted by M is the set of all binary strings which contain...
(4 points.) Consider the regular expression (11 + 00)'1(e + 01). . Give two strings of O's and 1's, each 6 to 12 characters long, that are both represented by this regular expression . Construct a nondeterministic finite automaton equivalent to the regular expression. (4 points.) Consider the regular expression (11 + 00)'1(e + 01). . Give two strings of O's and 1's, each 6 to 12 characters long, that are both represented by this regular expression . Construct a...