Problem #5. Following the construction described in class, give an equivalent regular expression for each of...
3. Using the algorithm covered in class, construct a NFSA with &-moves equivalent to the regular expression (a+b(a+ba*+(ba)*)*. Do not simplify any intermediate steps and the resulting diagram
Write a regular expression that captures the set of strings composed of 'a', 'b', and 'c', where any string uses at most two of the three letters (for example, "abbab" is a valid string, or "bccbb", or "ccacaa", but not "abccba": strings that contain only one of the three letters are also fine). Give a non-deterministic finite automaton that captures the regular expression from Using the construction described in class, give a deterministic version of the automaton. Repeat the previous...
Let R = (0*0 ∪ 11)*∪(10). Use the construction from the lecture (given any regular expression, we can construct an NFA that recognizes the described language) to construct an NFA N such that L(N) = L(R). Apply the construction literally (do not optimize the resulting NFA–keep all those ε arrows in the NFA). Only the final NFA is required, but you can get more partial credit if you show intermediate steps
(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...
(a) (5 Points) Construct an equivalent NFA for the language L given by the regular expression ((a Ub) ab)*. Please show the entire construction, step-by-step, to receive full points.
Give the best regular expression for each of the following in / delimited form. For example, the regular expression to find a string that is a single “a” would be /^a$/ You may NOT use the negation syntax in the format (?!) 1. Find a regular expression that will find strings that start with anything but the empty string and contains the string apple.
For each of the following regular expressions, give two strings that are members and two strings that are not members of the language described by the expression. The alphabet is ∑ = {a, b}. a(ba)∗b.(a ∪ b)∗a(a ∪ b)∗b(a ∪ b)∗a(a ∪ b)∗. (a ∪ ba ∪ bb)(a ∪ b)∗.
5. (20 pt.) Prove that the class of regular languages is closed under reverse. That is, show that if A is a regular language, then AR = {wR W E A} is also regular. Hint: given a DFA M = (Q,2,8,90, F) that recognizes A, construct a new NFA N = (Q', 2,8', qo',F') that recognizes AR and justify why your construction is correct.
Give a regular expression for each of the following languages. e. {axb | x∈{a, b}*} f. {(ab)n } g. {x ∈ {a, b}* | x contains at least three consecutive as} h. {x ∈ {a, b}* | the substring bab occurs somewhere in x} i. {x ∈ {a, b}* | x starts with at least three consecutive as}