1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Sliva [168]
3 years ago
11

Get the algorithm to remove the indirect left recursion from a grammar from Aho et al. (2006). Use this algorithm to remove all

left recursion from the following grammar: S→ Aa | Bb A→ Aa | Abc | c I Sb B → bb
Mathematics
1 answer:
Advocard [28]3 years ago
6 0

Answer:

Step-by-step explanation:

Here is the gramamr

S -> Aa | Bb

A -> Aa | Abc | c | Sb

B -> bb

-----------------------------------------------------------------------------------------------------------------------

Now for first gramamr step introduce new symbol S'

S -> BbS'

S' -> e | S'aA

----------------------------------------------------------------------------------------------------------------------------------------------------

Now for second gramamr statement...

A -> SbA' | cA'

A' -> e | A'a | A'bc

---------------------------------------------------------------------------------------------------------------------------------------------

For third grammar statement it is not required since it doesn't contain any recursion

So final gramamr will be

S -> BbS'

S' -> e | S'aA

A -> SbA' | cA'

A' -> e | A'a | A'bc

B -> bb

You might be interested in
What is 20 5/81 in simplest form
Marizza181 [45]
20 5/81 in its simplest form is 20 5/81.

20 5/81 originally looks like this ⇒ 1625/81

((20 * 81)+5)/81 = (1620+5)/81 = 1625/81   * this is an improper fraction because the numerator is greater than the denominator. Improper fractions must be converted to proper fractions. It will then become a mixed fraction.
 
     <u>  0020  5/81</u>        
81 | 1625
       <u>162      </u>      * 81 x 2
           05

5 0
2 years ago
Answer ASAP: What is the set of the four consecutive integers, the largest of which is -234?
Elza [17]
I’m pretty sure the answer is -237, -236, -235, and -234. Because -234 would be the greatest of that consecutive set.
5 0
3 years ago
a rectanglar solid has a base with lint 2 cm and width 8 cm. If the volume of the solid is 106 cm 3 to the highest, find the hei
Vanyuwa [196]
The hint says that volume of a rectangular solid = l*w*h, where l = length, w = width, and h = height. Use this to solve for the height of the solid by plugging in the numbers you know.

You know that length, l = 2cm, width, w = 8cm, and, *EDITED* volume = 160 cm^3. Plug these values into the equation for volume (the hint) and solve for h, the height:
Volume = lwh
160 = (2)(8)(h)
160 = 16h
h = 10cm

-------

Answer: The height is 10 cm

4 0
2 years ago
Read 2 more answers
How many 1/10's are in 2/5?
goblinko [34]
There is 4 1/10's in 2/5.

You do this by turning 2/5 into a fraction with a denominator of 10, so it will be 4/10. 1/10 + 1/10 + 1/10 + 1/10 = 4/10
3 0
3 years ago
PLEASE HELP ASAP!! WILL MARK BRAINLIEST!!
Hitman42 [59]
A. This is a function
4 0
3 years ago
Read 2 more answers
Other questions:
  • The manufacturer of a weight-training bench spends $15 to build each bench and sells them for $32. The manufacturer also has fix
    13·1 answer
  • Twenty five students are in a class. Each student will have one half of a sandwich for a snack. Each sandwich is made with two s
    10·1 answer
  • Find the missing factor 4b^2+17b+15+(b+3)()
    9·1 answer
  • i'd really appreciate it if you guys would stop giving me answers with no explanation. because when i get answers like that, the
    14·1 answer
  • Find the missing probability in the table below.
    14·1 answer
  • Order the numbers from least (top) to greatest (bottom).<br><br> -9 -4 |-2| |-3| |-6| |1|
    14·1 answer
  • Classify the following triangle. Check all that apply
    7·1 answer
  • Please show your work!!
    7·1 answer
  • "The difference between five-halves of a number
    9·2 answers
  • I need some math help please
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!