Find CFGs that generate these regular languages over the alphabet = {a b}: (i) The language
Question:
Find CFGs that generate these regular languages over the alphabet Σ = {a b}:
(i) The language defined by (aaa + b)*.
(ii) The language defined by (a + b)*(bbb + aaa)(a + b)*.
(iii) All strings without the substring aaa.
(iv) All strings that end in b and have an even number of b's in total.
(v) The set of all strings of odd length.
(vi) All strings with exactly one a or exactly one b.
(vii) All strings with an odd number of a's or an even number of b's.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 75% (8 reviews)
i a a 1 b a 2 aaa b a 1 b 2 a 2 b 3 ii a 1 b 2 a 2 b 3 a 1 b 3 a 2 ...View the full answer
Answered By
James Warinda
Hi! I’m James Otieno and I'm an experienced professional online tutor with countless hours of success in tutoring many subjects in different disciplines. Specifically, I have handled general management and general business as a tutor in Chegg, Help in Homework and Trans tutor accounts.
I believe that my experience has made me the perfect tutor for students of all ages, so I'm confident I can help you too with finding the solution to your problems. In addition, my approach is compatible with most educational methods and philosophies which means it will be easy for you to find a way in which we can work on things together. In addition, my long experience in the educational field has allowed me to develop a unique approach that is both productive and enjoyable.
I have tutored in course hero for quite some time and was among the top tutors awarded having high helpful rates and reviews. In addition, I have also been lucky enough to be nominated a finalist for the 2nd annual course hero award and the best tutor of the month in may 2022.
I will make sure that any student of yours will have an amazing time at learning with me, because I really care about helping people achieve their goals so if you don't have any worries or concerns whatsoever you should place your trust on me and let me help you get every single thing that you're looking for and more.
In my experience, I have observed that students tend to reach their potential in academics very easily when they are tutored by someone who is extremely dedicated to their academic career not just as a businessman but as a human being in general.
I have successfully tutored many students from different grades and from all sorts of backgrounds, so I'm confident I can help anyone find the solution to their problems and achieve
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
Find CFGs for the following languages over the alphabet = {a b}: (i) All words in which the letter b is never tripled. (ii) All words that have exactly two or three b's. (iii) All words that do not...
-
Give DFA's accepting the following languages over the alphabet {0, 1}: a) The set of all strings beginning with a 1 that, when interpreted as a binary integer, is a multiple of 5. For example,...
-
Design DFA's accepting the following languages over the alphabet {a, b, c} The set of strings with abababa as a substring. The set of strings where the appearance of any symbol is lexicographically...
-
As a preliminary to requesting budget estimates of sales, costs, and expenses for the fiscal year beginning January 1, 2009, the following tentative trial balance as of December 31, 2008, is prepared...
-
Sales of the P.J. Cramer Company were $500,000 this year, and they are expected to grow at a compound rate of 20 percent for the next six years. What will be the sales figure at the end of each of...
-
Transverse waves are being generated on a rope under constant tension. By what factor is the required power increased or decreased if (a) The length of the rope is doubled and the angular frequency...
-
What must be included in a separate statement?
-
Smith Accounting Services is considering a special order that it received from one of its corporate clients. The special order calls for Smith to prepare the individual tax returns of the...
-
Which is not a proper strategy for saving energy costs in heating water? (a) locating hot water booster heaters within 5 ft. where the hot water is needed or filling kettles with cold water, then...
-
The president of The Peterson Company suspects the bookkeeper is embezzling cash from the company. She asks you, confidentially, to look over the bank reconciliation that the bookkeeper has prepared...
-
Invent a form of prefix notation for the system of propositional calculus used in this chapter that enables us to write all well-formed formulas without the need for parentheses (and without...
-
Despite the fact that a CFG is not in regular form, it still might generate a regular language. If so, this means that there is another CFG that defines the same language and is in regular form. For...
-
Given that and that determine C, where ACB = I. 0 2) 2 1 -1 -1 0/ 1 A =
-
Distinguish between the two main types of decisions, giving an example of each.
-
Describe the relationships depicted in an organizational chart.
-
Why is it important for a company to have a strong organizational culture?
-
Describe three different types of multidivisional structures. Do companies use only one of the types or can they be mixed?
-
What is the difference between departments and divisions? Can the terms be used interchangeably? Why or why not?
-
Give all possible technical and economic reasons that the material removal processes described in this chapter may be preferred, or even required, over those described in Chapter 8?
-
Show that the peak of the black body spectrum as a function of ? is given by eq. (22.14) kg T Wmax = 2.82
-
Let S be a random permutation of n distinct integers. Argue that the expected running time of insertion-sort on S is (n 2 ).
-
Given a sequence S of n elements, on which a total order relation is defined, describe an efficient method for determining whether there are two equal elements in S. What is the running time of your...
-
Given an array A of n integers in the range [0,n 2 1], describe a simple method for sorting A in O(n) time.
-
You have a $ 9 0 , 0 0 0 ten - stock portfolio with a beta of 1 . 2 5 . If you add $ 1 5 , 0 0 0 worth of Stock A ( beta = 1 . 3 8 ) to this portfolio, the resulting portfolio would have a beta of:...
-
On January 1, 20X6, Pumpkin Corporation acquired 70 percent of Spice Company's common stock for $210,000 cash. The fair value of the noncontrolling interest at that date was determined to be $90,000....
-
Appliance maker forecast consulting: You are hired to recommend a forecasting solution to a small-scale home appliance maker. The three managers namely the shop floor, marketing, and finance make an...
Study smarter with the SolutionInn App