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.
-
Fast Action Video Products' sales are expected to increase from $2 million in 2012 to $3 million in 2013 or by 50%. Its assets totalled $1.5 million at the end of 2012. Fast Action is at full...
-
The following budgeted information is available for the Top Coat Clothing Company for January 2005. Selling and administrative expenses are paid in the month incurred and purchases are paid in the...
-
Backwoods American, Inc., produces expensive water repellent, down-lined parkas. The company implemented a total quality-management program in 2005. Following are quality-related accounting data that...
-
a. Compute the following ratios for year 2019. b. Compare the calculated ratios to the peer-group ratios listed above and assess the firm's financial condition 1. The balance sheet and income...
-
You will need to type on a separate sheet of paper which plan type you think would be best for each situation and why you have chosen that plan type. Each scenario will be worth 1 point. There are...
-
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 -...
-
Under what circumstances do the UCCJA and the UCCJEA encourage states to decline jurisdiction?
-
What aspects of a report prepared by an independent surveyor should the auditor examine if the amount stated in it is to be included in the balance sheet?
-
Deduce the full (absorption) cost of a cost unit in a single-product environment.
-
Should an auditor state the extent to which it has proved necessary to rely on the assistance of independent experts in the identification of specialised fixed assets or stocks during physical...
-
Discuss the advantages and possible dangers of conducting compliance and substantive tests simultaneously using the same sample of items.
-
How does activity-based costing differ from the traditional approach? What is the underlying difference in the philosophy of each of them?
-
Hurte-Paroxysm Products, Inc. (HP) of the United States exports computer printers to Brazil, whose currency, the reais (symbol R$) has been trading at R$3.40/US$. Exports to Brazil are currently...
-
Representative data read from a plot that appeared in the paper Effect of Cattle Treading on Erosion from Hill Pasture: Modeling Concepts and Analysis of Rainfall Simulator Data (Australian Journal...
-
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...
-
Which of these are good ways to organize new emails in your inbox? Multiple select question. Place emails related to all of your classes in the education folder. Move emails that have been addressed...
-
Markets may have difficulty providing the proper quantity of a public good because a. individuals will tend to become free riders, and private firms will have difficulty generating enough revenue to...
-
Ensuring that a firm has sufficient cash available on a daily basis is part of: Multiple Choice Working capital management. Capital budgeting. Organizational structure. Business organization. Capital...
Study smarter with the SolutionInn App