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: 75% (12 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.
-
You have observed the following returns over time: Assume that the risk-free rate is 6 percent and the market risk premium is 5 percent. a. What are the betas of Stocks X and Y? b. What are the...
-
With reference to the preceding exercise, change the equation obtained in part (a) to the form \(\widehat{y}=a \cdot e^{-c x}\), and use the result to rework part (b).
-
On October 1, 2017, Darcy Zaylo organized a computer service company called Darcy Systems. Darcy is organized as a sole proprietorship and will provide consulting services, computer system...
-
2. Write ARM Thumb-2 Assembly language code to perform the following logic: int Chose (int choice) 1 switch (choice) { case 'A': print("You choose: A "); break; case 'B': print("You choose: B ");...
-
Overview: In this activity, you will track a fictitioushurricane that is anticipated to strike Hampton Beach in Hampton,New Hampshire. You will assess the data provided in the scenario,estimating the...
-
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...
-
What standards does the AICPA produce in addition to auditing standards?
-
Steam enters the turbine at 30 bar and 400 C and leaves the condenser as saturated water at 29 C. Find: (a) Turbine power if steam flow rate is 18000 kg/h. (b) Cooling water flow rate if its...
-
Part I: Student Empowerment 1. Make a new discussion thread and share your response to the following: In about 150 words, describe three ways in which professors can empower students in the classroom...
-
i. 11. iii. iv. V Differentiate between Carburising and Nitriding on the basis of: Element diffused on surface, required/01/ the recommended temperature at which the treatment is required to be...
-
Select all that apply When only the intrinsic value of an option is designated as the hedging instrument, the option's time value may be recognized in net income Multiple select question. on a...
-
A heat-treating furnace is 20 m long, 10 m wide and 6 m high. If a check with thermocouples indicates that the average wall temperature is 400 C and the top is at 600 C, calculate the heat loss from...
-
How many ways are there to choose eight coins from a piggy bank containing 100 identical pennies and 80 identical nickels?
-
Create a data model for one of the processes in the end-of-chapter Exercises for Chapter 4. Explain how you would balance the data model and process model.
-
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?
-
What choice is a multiple of 5? a) 93 b) 63 c) 65 d) 84
-
Determine how many tablets will be needed to give the dosage. Prepare a dosage of 6.4 mg using tablets with a strength of 1.6 mg.
-
(a). Company Inc., private consumer regulator firm, claims that the standard deviation of the rating of Formula One races in the town main car racing circuit was at least 15.34. (b). An outside...
Study smarter with the SolutionInn App