Consider the following type 0 grammar over the alphabet = {a}. (i) Draw the total language
Question:
Consider the following type 0 grammar over the alphabet Σ = {a}.
(i) Draw the total language tree of this language to find all words of five or fewer letters generated by this grammar.
(ii) Generate the word a9 = aaaaaaaaa.
(iii) Show that for any n = 1, 2, . . . , we can derive the working string
AnBnD
(iv) From AnBnD. show that we can derive the working string
an2BnAnD
(v) Show that the working string in part (iv) generates the word
a(n+1)2
(vi) Show that the language of this grammar is
SQUARE = {an2 where n = 1 2 3 . . .}
= {a aaaa a9 a16 • • •}
Transcribed Image Text:
PROD 1 PROD 2 PROD 3 C PROD 4 PROD 5 PROD 6 PROD 7 PROD 8 PROD 9 S -a S → CD PROD 10 PROD 11 → ACB CAB AB - aBA Aa → aA Ba →aB AD→ Da BD →→ Ea BE→ Ea Ea
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 81% (11 reviews)
i To draw the total language tree we can start by expanding the root node S and following the production rules The production rules are S aS S aA A B ...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
-
Problem consider the following type 0 grammar over the alphabet = {a b}: Show that if w is any string of a's and b's, then the word WW can be generated by this grammar. S UVX UV-aUY UV-bUZ YX VaX...
-
Problem consider the following type 0 grammar over the alphabet = {a b}: Derive the following words from this grammar: (i) (ii) aa (iii) bb (iv) abab S UVX UV-aUY UV-bUZ YX VaX ZX VbX PROD 1 PROD...
-
Show that for any probability- generating function, H (z), H (1) = 1.
-
Use the following table, Present Value of an Annuity of 1 Period 8% 9% 10% 1 0.926 0.917 0.909 2 1.783 1.759 1.736 3 2.577 2.531 2.487 A company has a minimum required rate of return of 9 %. It is...
-
What is the name of your business? When you think of the name of your business, make sure that it captures the spirit of the business youre creating.
-
Write the first five terms of the geometric sequence with the first term, a 1 , and common ratio, r. a 1 = 5, r = 2
-
Calculate the variance and the standard deviation for a sample.
-
The demand for a product of Carolina Industries varies greatly from month to month. Based on the past two years of data, the following probability distribution shows the companys monthly demand: Unit...
-
The Colson Company has budgeted sales for the year as follows: Quarter 1 2 3 4 Sales in units 12,300 14,300 18,200 16,300 The ending inventory of finished goods for each quarter should equal 20% of...
-
Tidewater Home Health Care, Inc. has a bond issue outstanding with eight years remaining to maturity, a coupon rate of 10 percent with interest paid annually, and a par value of $1,000. The current...
-
Analyze the following type 0 grammar: (i) What are the four smallest words produced by this grammar? (ii) What is the language of this grammar? PROD 1 SA PROD 2 AaABC PROD 3 AabC PROD 4 CBBC PROD 5...
-
For consider the following grammar over the alphabet = {a b c} : Derive the following words: (i) ababcc (ii) cbaabccba PROD 1 PROD 2 PROD 3 PROD 4 PROD 5 PROD 6 PROD 7 PROD 8 S ABCS | A ABBA BC -...
-
Financial Break-even Analysis You are considering investing in a company that cultivates truffles for sale to local restaurants. Use the following information: Sales price per truffle 100.00 Variable...
-
A company must decide between scrapping or reworking units that do not pass inspection. The company has 16,000 defective units that have already cost $132,000 to manufacture. The units can be sold as...
-
according to the phase rule, the triple point of a pure substance is A. invariant B. u nivariant C. bivariant D. none of the above
-
33. If the equipment in the previous question had sold for $15,000, the correct entry would be: a. Cash debit $15,000. Gain credit $3,000. $12,000 Equipment credit b. Cash debit $15,000. Debit a loss...
-
The banks play a central role in financial intermediation in New Zealand. 1.What is financial intermediation? Who performs it? and why is it important? 2.What is Qualitative Asset transformation...
-
Consider the following information attributed to the material management department Budgeted usage of materials - handling labor - hours 3,700 Budgeted cost pools: Fixed costs $166,500 Variable costs...
-
It was Nicholass worst nightmare. The health inspector found a several violations at his upscale restaurant and closed it down until they were resolved. Nicholas rushed to the restaurant as soon as...
-
On 1 July 2021, Croydon Ltd leased ten excavators for five years from Machines4U Ltd. The excavators are expected to have an economic life of 6 years, after which time they will have an expected...
-
In Figure 11.12, explain why we need a timer at the sending site, but none at the receiving site. Figure 11.12 Receiving node Network Sending node Network Data-link Data-link Packet Frame Legend...
-
Redraw Figure 11.21 with the system not using authentication. Figure 11.21 Carrier detection failed Start Dead Carrier detected Establish Carrier dropped Authentication needed Authentication failed...
-
Does the duplex communication in Figure 11.10 necessarily mean we need two separate media between the two nodes? Explain. Figure 11.10 Receiving node Sending node Frame ACK [CRC Network [CRC Network...
-
Be prepared to explain the texts comprehensive To illustrate the issues related to interest capitalization, assume that on November 1, 2016, Shalla Company contracted Pfeifer Construction Co. to...
-
On April 1, 2020. Indigo Company received a condemnation award of $473,000 cash as compensation for the forced sale of the company's land and building, which stood in the path of a new state highway....
-
The market price of a stock is $24.55 and it is expected to pay a dividend of $1.44 next year. The required rate of return is 11.23%. What is the expected growth rate of the dividend? Submit Answer...
Study smarter with the SolutionInn App