Question

This a question in a compiler class, principles techniques and tools Are the following identities on...

This a question in a compiler class, principles techniques and tools

Are the following identities on regular expressions correct. explain why?

1.) abb*c = ab*c

2.) ( a | b | c)* = (( a | b | c) e)*

3.) ( aa | ab | ac) = a ( a | b | c | e)

Homework Answers

Answer #1

1.) abb*c = ab*c

Not correct

-Counter example-
ac is accepted by ab*c
ac is not accepted by abb*c

2.) ( a | b | c)* = (( a | b | c) e)*

Not correct

-Counter example-
a is accepted by ( a | b | c)*
a is not accepted by (( a | b | c) e)*


3.) ( aa | ab | ac) = a ( a | b | c | e)

Not correct

-Counter example-
ae is accepted by a ( a | b | c | e)
ae is not accepted by ( aa | ab | ac)

Please up vote. I need it very badly right now. Comment if you have any doubts. Happy Learning! Please post one from next time.

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
1. a) Rewrite the following rule base as a CFG and provide its formal definition (...
1. a) Rewrite the following rule base as a CFG and provide its formal definition ( S is the start state ) S → aSb | bAA A → b {aB} | a | Bc B → aB | c b) Generate the 10 smallest possible strings using the above rule base. ( from problem a) 2. Either show that the following strings are in this language or state why these strings can not be.. S → AB | BC...
A (–4, –1, 2), B (3, –2, –1) and C (–1, 3, –4), AB= 7? −...
A (–4, –1, 2), B (3, –2, –1) and C (–1, 3, –4), AB= 7? − ? − 3? CB = 4? − 5? + 3? AC = 3? + 5? - 2? Question 7: Express the vector AC as the sum of two vectors: AC = ? + ?, where ? is parallel to the vector CB and ? is perpendicular to CB. Given that AC ∙ CB = −26 and that CB = √50, determine the y-component of...
Simply the following functional expressions using Boolean algebra and its identifies. List the identities used at...
Simply the following functional expressions using Boolean algebra and its identifies. List the identities used at each step. a) F(x, y, z) = y(x’ + (x + y)’) b) F(x, y, z) = x’yz + xz c) F(x, y, z) = (x’ + y + z’)’ + xy’z’ + yz + xyz The Essentials Of Computer Organization And Architecture (4th Edition) - Chapter 3 - PROB 14E Note: It seems the Chegg solutions for the textbook are sometimes not correct,...
Question 6 (a) Explain the difference between class limit and class boundaries. [2 marks] (b) Use...
Question 6 (a) Explain the difference between class limit and class boundaries. [2 marks] (b) Use the frequency table, Table 1, overleaf to answer the following questions: Table 1 X f 0-9 3 10-19 14 20-29 11 30-39 5 (i) What is the class width? (ii) What is the sample size? (iii) What is the lower class limit of the first class? (iv) What is the lower class boundary of the first class? (i) What is the class width? (ii)...
1. If the circuit shown in Fig 3.3, where to be configured as a Class B...
1. If the circuit shown in Fig 3.3, where to be configured as a Class B amplifier, what would be an appropriate value for the resistance R1 with respect to R2? 2. Explain the need for opto-isolation in AC control using thyristors. 3. Why is a thyristor not ideal for AC power control?
CHAPTER 2 MATLAB EXERCISES QUESTION 1: Enter the matrices A=[0 -4 5] and B= [-5 6...
CHAPTER 2 MATLAB EXERCISES QUESTION 1: Enter the matrices A=[0 -4 5] and B= [-5 6 7] 3 1 -2 0  -1 2 2 1 4 4 0 -3 USE MATLAB to find a) A + B b) B - 3A c) AB d) BA QUESTION 6: ENTER THE THREE MATRICES A= [1 2 3 4] B= [4 -6 3 5] 2 3 4 5 0 -3 -6 8 3 4 5 6   3 5 0 7 4 5 6 7...
Automata Theory and Formal Languages Problems 1: Consider the following two grammars. Grammar G1- S →...
Automata Theory and Formal Languages Problems 1: Consider the following two grammars. Grammar G1- S → aSb / ∈ Grammar G2- S → aAb / ∈, A → aAb / ∈ a. is G1=G2 b. What is the grammar generated by the expression Problem 2: Let us consider the grammar. G2 = ({S, A}, {a, b}, S, {S → aAb, aA → aaAb, A → ε } ) Derive aaabbb Problem 3: Suppose we have the following grammar. G: N...
An observed frequency distribution of the final grades of a class is as follows: Final Grade...
An observed frequency distribution of the final grades of a class is as follows: Final Grade AA A−A− B+B+ BB B−B− C+C+ CC C−C− DD FF Frequency (O) 50 53 47 50 54 50 46 44 54 52 At the 0.025 significance level, we wish to test the claim that the final grades of such a class occur with the same frequency. 1. The expected frequency is E=E= 2. Fill in the following table Final Grade Frequency (O) (O−E)2E(O−E)2E AA...
Question 111.5 pts Which of the following are examples of tools used in motion study? Group...
Question 111.5 pts Which of the following are examples of tools used in motion study? Group of answer choices A. Charting B. Therbligs C. Work Sampling D. A and B only E. A, B and C only Flag this Question Question 121.5 pts In master scheduling, the term for a time period’s uncommitted inventory is: Group of answer choices A. Ending on-hand inventory B. Available-to-promise inventory C. Lead-time inventory D. Cycle stock inventory E. None of the above Flag this...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT