Question

1. Consider the following regular expressions: • R1 = (b*a)* • R2 = (ab*)* + (a*b)*...

1. Consider the following regular expressions:

• R1 = (b*a)*

• R2 = (ab*)* + (a*b)*

For each of the following strings, answer one of the following:

the string is accepted only by R1

the string is accepted only by R2

the string is accepted by BOTH R1 and R2

the string is accepted by NEITHER R1 nor R2

__bbaa    A. Only R2

__abb B. NEITHER R1 nor R2

__aba C. BOTH R1 and R2

__abba D. Only R1

__babab

__aabab

Homework Answers

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 formal definition of the regular language generated by the following Regular Expressions: 1) ((ab*+a)*+ab) 2)...
Give formal definition of the regular language generated by the following Regular Expressions: 1) ((ab*+a)*+ab) 2) (a+b)*c(a+b)* 3) (ab)*+a*b
For each of the following regular expressions, give 2 examples of strings that are in the...
For each of the following regular expressions, give 2 examples of strings that are in the language described by the regular expression, and 2 examples of strings that are not in that language. In all cases the alphabet is {a,b}. ab*ba* (a ∪ ε)b* (a ∪ b)ε*(aa ∪ bb)
For each of the following regular expressions, give 2 examples of strings that are in the...
For each of the following regular expressions, give 2 examples of strings that are in the language described by the regular expression, and 2 examples of strings that are not in that language. In all cases the alphabet is {a, b}. ab*ba* (a ∪ ε)b* (a ∪ b)ε*(aa ∪ bb)
The consecutive liquid phase reactions A (k1,r1) −−−→ B, B (k2,r2) −−−→ C; r1 = k1C2...
The consecutive liquid phase reactions A (k1,r1) −−−→ B, B (k2,r2) −−−→ C; r1 = k1C2 A, r2 = k2CB, occur in a batch reactor with initial composition CA = CA0, CA0 = 3 mol/L, CB0 = CC0 = 0. (a). Solve mass balances for A and B successively to obtain expressions for CA and CB versus t. The expression for CB will be in terms of an integral, which can be evaluated only numerically. Do not bother to evaluate...
linux regular expressions: file name: lab3test.txt Create regular expressions that meet the following criteria. You may...
linux regular expressions: file name: lab3test.txt Create regular expressions that meet the following criteria. You may use grep or egrep to answer these questions 1.Match only the lines that contain an employee ID (and nothing else) with the format 12345.
1.2 Which of the following statements is wrong?        a). A set is a subset of itself...
1.2 Which of the following statements is wrong?        a). A set is a subset of itself        b). Emptyset is a subset of any set        c). A set is a subset of its powerset        d). The cardinality of emptyset is 0 1.3. Which of the following statements is correct?        a). A string is a set of symbols from an alphabet        b). The length of the concatenation of two strings can           be the same as one of them        c). The length of...
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
The alphabet is Ʃ = {a,b}. Give regular expressions that generate the following languages below. Use...
The alphabet is Ʃ = {a,b}. Give regular expressions that generate the following languages below. Use these symbols: Ʃ, a, b, ε, Ø, *, (, ), U. 1) ? = {? | ? contains an odd number of a's and ends with b} 2) ? = {a? b? | ? < 5,? < ?} 3) ? = {? | ? contains the substring ab and contains the substring ba} 4) ? = {? | ? has an odd number of...
Given the following sequential list of VEX operations: A. add $r3 = $r1, $r2 B. sub...
Given the following sequential list of VEX operations: A. add $r3 = $r1, $r2 B. sub $r8 = $r1, $r3 C. sub $r7 = $r1, 2 D. add $r1 = $r1, 1 E. mpy $r6 = $r3, $r2 Which VEX operations can be scheduled simultaneously to make up the second VLIW instruction? The constructed schedule should satisfy the following conditions: Assume infinite resources and no limit to the number of operations scheduled to a single instruction. Operations that are scheduled...
Please answer ASAP Database Consider the relation scheme R = {A, B, C, D, E} with...
Please answer ASAP Database Consider the relation scheme R = {A, B, C, D, E} with the FDs A --> BC CD --> E Consider the following decompositions: (4.a) R1 = {A, B, C} and R2 = {C, D, E} (4.b) R1 = {A, B, C} and R2 = {A, D, E} (4.c) R1 = {A, B} and R2 = {A, C, D, E} (4.d) R1 = {A, B, C}, R2 = {C, D, E} and R3 ={A, D}. For...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT