Question

Automata, Computabity, Formal lang. NOTE: Please show how you got the answer, thanks. QUESTION: Give a...

Automata, Computabity, Formal lang.

NOTE: Please show how you got the answer, thanks.

QUESTION: Give a regular expression for the following. The alphabet is {a, b}. All strings that start with 'a' and have odd length.

Homework Answers

Answer #1

Accepted Strings:

These all strings are the part of the language so should be accepted by regular expression.

Example strings = {a, aaa, aba, aabba, aabbb,………}and all other strings that contain odd length strings and start with a.

Rejected Strings:

These all strings are not part of the language so should be rejected by regular expression.

Example strings = {b,aa, bb, ab, ba, aaaa, abba, abbb,……………..} and all other strings that start with b and do not contain odd length strings.

R.E = (a) (aa+bb+ab+ba)*

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
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA...
Automata Theory and Formal Languages Instructions: Draw the DFA (Deterministic Finite Automaton) of the following: DFA which accepts strings of odd length Design a DFA over w ∈ {a,b}*such that number of a = 2 and there is no restriction over length of b DFA for Number of a(w) mod 2 = 0 and Number of b(w) mod 2 = 0 DFA for Number of a(w) mod 2 = 0 orNumber of b(w) mod 2 = 0 DFA for Number...
Answer following question, see if you have got the concept of how to set up an...
Answer following question, see if you have got the concept of how to set up an alegebric equation. You have to buy two dozen eggs priced at $10, three breads (each bread is $5), and five bottles of juice (each bottle is $8). How much money you will need to take to store. Let's E represent egg, B for bread, and J for a bottle of juce 1) What is the algebric expression? 2) solve the expression by plugging cost...
Please show all steps and work no how you got answer thank you! Please no script!...
Please show all steps and work no how you got answer thank you! Please no script! Some people have bad script hand writing please write normal ;[ How many 6 digit numbers can you form by rearranging 769543 in different order? How many ways can you form committee of 11 consisting of 6 Americans and 5 Russians out of 8 Americans and 6 Russians? Find the present value of $3000 due at the end of 11years at 10% per year...
Computer Science Theory Question Please Answer correctly and clearly with explanation if possible. => For a...
Computer Science Theory Question Please Answer correctly and clearly with explanation if possible. => For a string w = w1w2...wn where wi ∈ Σ, we define the reverse of w as wR= wn...w2w1 (namely the string w in reverse order). For a languageLwe defineLR={wR|w∈L}. ===> Prove that for every regular expression α there is a regular expression β of the exact same length | β |=|α |, such that L(β) = (L(α))R. (NOTE - Here In this problem you are...
microeconomics: NOTE : PLEASE BRIEFLY SHOW ME HOW YOU GOT THE RESULT. THANK YOU                              &nbsp
microeconomics: NOTE : PLEASE BRIEFLY SHOW ME HOW YOU GOT THE RESULT. THANK YOU                                                                            GOOGLE($)             APPLE($)                       MICROSOFT($) sales                                       50005                                 5725                                        3050 wages and salaries           29052                                 3932                                         400 cost of capital                           4000                                 1050                                          330 interest on debt                      7585                                   275                                             5 cost of materials                        6500                                   556                                          1650 (NOTE: COST OF CAPITAL > COST OF EQUITY CAPITAL) 3. CALCULATE accounting profit and economic profit for each of the firms. 4. list name of firm(s)which earn(s) more than...
Correct answer is 751.67. Please show how you got everything! No shortcuts! How did you get...
Correct answer is 751.67. Please show how you got everything! No shortcuts! How did you get Z? If can, please show how you do it on a Ti-84 calculator? A previous study of nickels showed that the standard deviation of the weight of nickels is 250 milligrams. A coin counter manufacturer wants to estimate the mean weight to within 15 milligrams with 90% confidence. How many nickels does he need to weigh?
Please answer the following question and show all steps/work. Thanks! If a $100,000, 8%, 10 year...
Please answer the following question and show all steps/work. Thanks! If a $100,000, 8%, 10 year semi-annual bond is sold to yield 9%. Assuming no transaction costs the cash proceeds will be: a. less than the face value b. equal to face value c. greater than the face value d. more than $180,000 e. exactly $109,000
PLEASE, READ THE QUESTION BEFORE ANSWERING, GIVE A NEW, CLEAR AND UNDERSTANDABLE ANSWER. THANKS IN ADVANCE...
PLEASE, READ THE QUESTION BEFORE ANSWERING, GIVE A NEW, CLEAR AND UNDERSTANDABLE ANSWER. THANKS IN ADVANCE For each of these conditions—deadlock, livelock, race, and starvation—give at least one real-life example, which is not related to a computer system environment and not already suggested in this chapter, of each of these concepts. Then give your own opinion on how each of the four examples can be resolved.
Please fill out the chart and answer the following questions. Please show steps on how you...
Please fill out the chart and answer the following questions. Please show steps on how you got the answers thanks. units of labor units of output MPP 0 0 --- 1 ? 30 2 66 ? 3 ? 30 4 116 ? What is the marginal physical product of the second unit of labor in the Table? What is the marginal physical product of the fourth unit of labor in the Table? How many units of output can be produced...
Please explain if the following are true or false and how you got your answer. A....
Please explain if the following are true or false and how you got your answer. A. The electrostatic energy of two charged particles is inversely proportional to the distance between them. B. When comparing Lithium, sodium and oxygen, lithium has the largest second ionization energy. C. According to the postulates of kinetic-molecular theory, the molecules of all gases at a given temperature have the same average speed.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT