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...
-
Celic Inc. manufactures and sells computers that include an assurancetype warranty for 90 days. Celic offers an optional extended coverage plan under which it will repair or replace any defective...
-
How is the connection between social stratification and the state illustrated in the ethnography of the Asante kingdom?
-
Henderson Supermarkets (HS) operates at capacity and decides to apply ABC analysis to three product lines: baked goods, milk and fruit juice, and frozen foods. It identifies four activities and their...
-
Problem 1. Three vessels have different shapes, but the area of their bottom surface is the same, and all three are filled with water with the same depth (Fig. 1). Rank the magnitudes of the net...
-
Do you believe that prosecution of crimes (such as criminal law) should be placed solely in the hands of the government or would it be better served to reside in the private sector? Why? Should...
-
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...
-
What indications would suggest that a state machine has not been drawn to model state changes?
-
4. Let the table with the following training data be given. Num. X1 X2 Class 1 6 1 0 2 7 3 0 3 8 2 0 4 st 9 0 0 5 8 4 1 6 8 6 1 7 9 2 1 8 9 5 1 In the following, use the Manhattan distance d(a, b),...
-
Morgan is the founder of a new start-up company. She hires mostly young employees who are recent college graduates. She finds that most of her employees want to further their knowledge and skills and...
-
Indicate how the following item is reported in the financial statements of a company: The balance of $500,000 in a billings account, which is less than $600,000 in a construction in process account....
-
Can you rephrase this: Illegal price transfer and allocation of income refer to practices employed by multinational corporations (MNCs) to manipulate their financial transactions and shift profits to...
-
A company that produces and sells ceramic tiles for $ 4 1 . 7 8 per square foot has fixed weekly expenses of $ 7 , 2 1 0 and variable expenses of $ 1 4 . 7 9 for each square foot of tile. Determine...
-
Boiling water in an aluminum pan is being converted to steam at a rate of 10.0 g/s. The flat bottom of the pan has an area of 325 cm2 and the pan's thickness is 3.00 mm. If 27.0% of all heat that is...
-
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.
-
Hitzu Company sold a copier (that costs $4,800) for $6,000 cash with a two-year parts warranty to a customer on August 16 of Year 1. Hitzu expects warranty costs to be 4% of dollar sales. It records...
-
A student bikes to school by traveling first dN = 1 . 1 0 miles north, then dW = 0 . 4 0 0 miles west, and finally dS = 0 . 2 20 miles south.Take the north direction as the positive y direction and...
-
Alternative objectives of firm decision-making, we expanded the profit motive to consider the goal of sustainability. As part of the motivation for studying the economics of sustainability, we...
Study smarter with the SolutionInn App