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.
-
For the network shown in Figure P28.28, show that the resistance Rab = (27/17) Ω. 1.0 1,0 1.0 3.0 5.0
-
Trane Comfort Specialists, Inc., reported the following stockholders' equity on its balance sheet at June \(30,2008\). Requirements 1. Identify the different issues of stock that Trane has...
-
The financial statements of Simon Co. include the following items (amounts in thousands): Income Statement 2011 For the Year Ended December 31, Net income . . . . . . . . . . . . . . . . . . . . . ....
-
Darling Downs Investors Ltd (DDI) runs a portfolio whose performance is like the performance of the Australian share market as measured by the S&P/ASX 200 index. DDI would like some protection...
-
The Case of the Unidentified Industries: Try to match the 14firms operating in the 14 industries named below with the 14 sets of financial data presented in Exhibit 1. MIHIR A. DESAI WILLIAM E....
-
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...
-
Moldova is a former Soviet republic that had a GDP per capita of $6,700 in 2017, which is lower than other former Soviet republics like Russia ($27,900) and Estonia ($31,700). Moldovas main export is...
-
The purchasing aspect of this cycle extends only to the acquisition of inventory items and cash disbursements applies to all payments. Discuss the validity of these assertions.
-
What are the materiality and audit risks associated with purchases and cash disbursements transactions?
-
What departments report to (a) the vice-president of manufacturing and (b) the controller in the expenditure cycle?
-
Briefly explain the materiality and audit risk associated with payroll transactions.
-
Describe the nature and scope of tests of balances.
-
Give two different and specific examples in which the maximum-shear-stress and the distortion-energy criteria give the same answer.
-
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?
-
Westerville Company reported the following results from last year's operations: Sales Variable expenses Contribution margin Fixed expenses Net operating income Average operating assets $ 1,300,000...
-
21. Draw the Lewis structure of carbonate ion (CO32) showing all possible resonance structures if there are any. Determine the formal charge of each atom. 22. Draw the Lewis structure of ozone (O3)...
-
Vertical Adventures has an open line of credit with a zero balance at its credit union using a fixed interest rate of 7.15%. On the last day of every month, the accrued interest must be paid. On July...
Study smarter with the SolutionInn App