Convert the following CFGs to CNF: (i) S SS I a (ii) S aSa I
Question:
Convert the following CFGs to CNF:
(i)
S → SS I a
(ii)
S → aSa I SSa I a
(iii)
S → aXX
X → aS l bS l a
(iv)
E → E + E
E → E*E
E → (E)
E → 7
The terminals here are + * ( ) 7.
(v)
S→ ABABAB
A → a I Λ
B → b I Λ
(vi)
S → SaS I SaSbS I SbSaS I Λ
(vii)
S → AS I SB
A → BS I SA
B → SS
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 76% (13 reviews)
i S SS I a The goal is to find a formula that can be rewritten as So we look for formulas in the form a where a and b are variables This can be achiev...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
-
Convert the following CFGs with unit productions into CNF: (i) S X X Y Y Z Z aa (ii) S SS I A A SS I AS I a
-
A pendulum bob swings from point II to point III along the circular arc indicated in Figure 7-19. (a) Is the work done on the bob by gravity positive, negative, or zero? Explain. (b) Is the work done...
-
Terminals A and B in Figure 21-50 are connected to an 18-V battery. Find the energy stored in each capacitor. Figure 21-50, -29 24 -4g 49 -29 24 20 20 -89 89
-
State Einstein's postulates of the special theory of relativity. ii. Write down Einstein's mass-energy equivalence formula. iii. In the case of two inertial frames of reference, S' moving at a...
-
Return to your group and share your investment recommendations.
-
Explain why the flip-flop rate of phospholipids in biological membranes is far greater than in artificial lipid membranes.
-
What is the internal auditor's task with respect to fraud? Who has primary responsibility?
-
During its first year of operations, Gavin Company had credit sales of $3,000,000; $600,000 remained uncollected at year-end. The credit manager estimates that $31,000 of these receivables will...
-
Please help with the details on how I calculate the answer Colt Systems will have EBIT this coming year of $15 million. It will also spend $6 million on total capital expenditures and increases in...
-
On June 25, Tin Roofing extended an offer of $300,000 for land that had been priced for sale at $375,000. On July 9, Tin Roofing accepted the sellers counteroffer of $320,000. On October 1, the land...
-
In convert the following FAs into equivalent PDAs. b b a a a b b
-
Each of the following CFGs has a production using the symbol and yet is not a word in its language. Using the algorithm in this chapter, show that there are other CFGs for these languages that do...
-
Read the Selling in Action feature titled How Do Customers Judge Service Quality? on page 134. How might this information help a salesperson that wants to adopt the value-added selling strategy?
-
The growth of audit committees can be attributed to the influence of the: a. SEC. b. AICPA. c. NYSE. d. All of the above. e. None of the above.
-
The tasks ofan effective board have been said to: a. Be a review organ. b. Remove top management for failure to perform. c. Be a public relations and community relations organ. d. Develop policies to...
-
As a result of the Penn Central Railroad affair, the SEC took the position that: a. Only those board directors personally involved in wrongdoing would be held liable. b. Board directors should take...
-
Audit committee members can receive the greatest comfort about internal accounting control from: a. Management. b. Internal auditors. c. External auditors. d. Personal review. e. Reading the text of...
-
Janna Sturm does not use a journal in her business records. She records the debits and credits for each transaction directly in the general ledger accounts. Is Ms. Sturm using the correct procedure?...
-
In writing a research memo, what types of facts should be included in the memo?
-
What is a content filter? Where is it placed in the network to gain the best result for the organization?
-
What does the Shannon capacity have to do with communications?
-
What is the bit rate for each of the following signals? a. A signal in which 1 bit lasts 0.001 s. b. A signal in which 1 bit lasts 2 ms. c. A signal in which 10 bits last 20 s.
-
What does the Nyquist theorem have to do with communications?
-
7. On January 1, 2019, Dent Co. purchased a machine for $792,000 and depreciated it by the straight-line method using an estimated useful life of eight years with no salvage value. On January 1,...
-
Wilmington Company has two manufacturing departments--Assembly and Fabrication. It considers all of its manufacturing overhead costs to be fixed costs. The first set of data that is shown below is...
-
Service Revenue H&R Wholesalers is a retailer providinglow cost, bulk items to small companies. Companies must pay anannual membership fee of $200 to access H&R's warehouses.H&R receive 2 answers
Study smarter with the SolutionInn App