Question

Which one of the following languages over the alphabet {0,1} is described by the regular expression...

Which one of the following languages over the alphabet {0,1} is described by the regular expression

(0+1)* 0 (0+1)* 0 (0+1)* ?

a.The set of all strings that begin and end with either 0 or 1

b.The set of all strings containing at most two zeros

c.The set of all strings containing at least two zeros.

d.The set of all strings containing the substring 00

Homework Answers

Answer #1

Option C is correct because in the given regular expression (0+1)* 0(0+1)* 0 (0+1)* the underlined two zeros will definitely be written.


Option A is incorrect because the given regular expression cannot yield 01 which is essential to satisfy option A.


Option B is incorrect because the given expression can generate 000 which rules out the possibility of B being correct.


Option D is incorrect because the given expression can also produce 11010 which does not include the substring 00.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Give a regular expression for the set of all strings on the alphabet {0,1} with no...
Give a regular expression for the set of all strings on the alphabet {0,1} with no runs of length greater than 3(for example, no substrings 0^i or 1^i with i > 3)
Q2 [10 pts] Give DFA's accepting the following languages over the alphabet {0,1}: a) The set...
Q2 [10 pts] Give DFA's accepting the following languages over the alphabet {0,1}: a) The set of all strings whose 3rd symbol from the right end is a 0. b) The set of strings such that the number of 0's is divisible by 3 and the number of 1's divisible by 2.
Are the following languages over {a, b} regular? If they are then prove it. If they...
Are the following languages over {a, b} regular? If they are then prove it. If they are not prove it with the Pumping Lemma {an bm | m != n, n >= 0} {w | w contains the substring ‘aaa’ once and only once } Clear concise details please, if the language is regular, provide a DFA/NFA along with the regular expression. Thank you. Will +1
Find a regular expression to describe: The set of all strings over the alphabet {a, b,...
Find a regular expression to describe: The set of all strings over the alphabet {a, b, c, d} that contain exactly one a and exactly one b So, for example, the following strings are in this language: ab, ba, cccbad, acbd, cabddddd, ddbdddacccc and the following strings are NOT in this language: a, ccbc, acbcaaacba, acacac, bcbbbbbca, aca, c, d, b
Show a regular expression representing the described set: a). The set of strings of odd length...
Show a regular expression representing the described set: a). The set of strings of odd length over {s,t,r,i,n,g} containing exactly 3 n's.
Let F be the set of all finite languages over alphabet {0, 1}. Show that F...
Let F be the set of all finite languages over alphabet {0, 1}. Show that F is countable
Give a regular expression for each of the following sets: a) set of all string of...
Give a regular expression for each of the following sets: a) set of all string of 0s and 1s beginning with 0 and end with 1. b) set of all string of 0s and 1s having an odd number of 0s. d) set of all string of 0s and 1s containing at least one 0. e) set of all string of a's and b's where each a is followed by two b's. f) set of all string of 0s and...
1. Exposure of cells to X rays and gamma rays can cause which of the following?...
1. Exposure of cells to X rays and gamma rays can cause which of the following? a.frameshift mutations b.base-pair substitutions c.physical breaks in chromosomes d.pyrimidine dimers Select all components that are part of the first line of defense: a.lysozyme b.defensins c.C3 and C5 d.NOD e.TLR f.stomach pH 3.In an inducible operon, which of the following must occur to inhibit gene expression? a.The repressor must bind to the operator. b.The inducer must bind to the repressor. c.The corepressor must bind to...
1- Grover initiates a breach of contract action against Todd. Grover claims the contract, which was...
1- Grover initiates a breach of contract action against Todd. Grover claims the contract, which was reduced to writing, called for Todd to deliver 200 crates of peaches by a certain date. At trial, Todd wishes to testify that the contract only called for delivery of 100 crates. Grover makes a best evidence rule objection. a.The court should sustain the objection. b.The court should overrule the objection because a contract is an agreement brought about by the meeting of two...
1. Which of the following methods allocates joint costs using a measure such as pounds, gallons,...
1. Which of the following methods allocates joint costs using a measure such as pounds, gallons, or inches at the split-off point? a.weighted average method b.net realizable value method c.physical units method 2. Johnson Lumber Mill produces various grades of cut boards from raw lumber. The costs incurred before the split-off point where the cut boards are separated and processed further are a.investment center costs b.new costs that cannot be traced to the various grades of lumber being produced c.new...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT