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.
-
The Spring Breaks 'R' Us Travel Service system has many use cases and domain classes, which you identified in Chapters 3 and 4. Review the domain model class diagram to get a feel for the complexity...
-
19.6 Why do companies often use prices other than market prices for interdivisional transfers?
-
Materials issued for the current month are as follows: Journalize the entry to record the issuance ofmaterials. Requisition No. Material Job No. Amount $25,400 101 Steel 210 102 Plastic 215 19,600...
-
Saved Schister Systems uses the following data in its Cost-Volume-Profit analyses: Sales Variable expenses Contribution margin Fixed expenses Net operating income Total $ 400,000 280,000 120,000...
-
The income statement of Fezzik's Shoe Repair is as follows: On April 1, the Owner's Capital account had a balance of $12,900. During April, Fezzik withdrew $3,000 cash for personal use. Prepare...
-
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...
-
During the current year, Sports +, Inc., operated two business segments: a chain of surf and dive shops and a small chain of tennis shops. The tennis shops were not profitable and were sold near...
-
Assume that John wants to annuitize the annuity and is told that he can receive a straight life annuity for $600 a month for life. If the actuarial number of payments is 300, how much of the first...
-
An epidemiologist plans to conduct a survey to estimate the percentage of women who give birth. How many women must be surveyed in order to be 90% confident that the estimated percentage is in error...
-
Your homework for this week is to watch the first lecture on Financial Accounting and at the end of the outline there are several problems for you to do. The problems begin with parts A-D for you to...
-
Sheril Rose was a brilliant but penniless material scientist. She had designed a new type of solar panel she believed had great commercial potential. On January 15, she approached Felda Higgins, a...
-
IAS 23 requires companies to capitalize borrowing costs directly attributable to the acquisition, construction or production of an asset into the cost of an asset.Previously, accounting standard...
-
Find the domain of the function. Write answers using interval notation. f(x) Vi6 4
-
Read the Forecasting Supply Chain Demand Starbucks Corporation case in your text Operations and Supply Chain Management on pages 484-485, then address the four questions associated with the...
-
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?
-
why would an auditor want to complete dual-purpose tests? what procedure can be put into place to help prevent fraud? List 4 procedures.
-
Based on the following information, calculate sustainable growth rate for Groot, Inc.: Profit margin= 7.1% Total asset turnover = 1.90 Total debt ratio = .45 Payout ratio = 20% What is the ROA here?
-
Consider the following: a call option on a stock has strike price $100, premium of $5 and the current price of the underlying stock is $100. If you buy the call option today, what is your holding...
Study smarter with the SolutionInn App