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
In 2005 there were 1352 students in 2006 there were 1014 students work out the decrease in the number of students
Eduardwww [97]
I’m. It sure but I need points so sorry
6 0
3 years ago
9. Using a twenty sided number cube, what is the probability that you will roll an even number or
IceJOKER [234]

Answer:

0.85

Step-by-step explanation:

total samples cases = 20

chances that are even or odd prime are 17 chances

2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20

probability = 17/20

= 0.85

3 0
2 years ago
If Cyrus knows that △ABC∼△EDC and AB¯¯¯¯¯¯¯¯∥ED¯¯¯¯¯¯¯¯, how can he prove that line m passing through AB¯¯¯¯¯¯¯¯ has the same sl
tester [92]

As AB and ED are parallel, they have the same slope. This means that since lines that are colllinear with parallel segments are parallel, lines l and m are parallel.

5 0
2 years ago
A vendor is thinking about changing the number of sweatshirts he brings to
lora16 [44]

Answer:

Medium

Step-by-step explanation:

If a person that would need a little bit of a bigger size they would fit in medium and a small wouldnt fit them. Also a person that wears a small would also benefit because it would be a little bigger so if they grew more it would still fit.

3 0
3 years ago
What is 8/30 in simplest form?
Free_Kalibri [48]
8/30
= (8/2) / (30/2)
= 4/15

8/30 in its simplest form is 4/15~
5 0
3 years ago
Read 2 more answers
Other questions:
  • Bart practice his trumpet 1 1/4 hours each day how many hours will be practice in 6 days?
    9·2 answers
  • Cathy rolls a number cube that is labeled from 1 to 6.
    9·1 answer
  • A college student is interested in investigating the TV-watching habits of her classmates and surveys 20 people on the number of
    15·1 answer
  • = [70 + (-30)] + [2 + (-9)] + [0.3 + (-0.10]
    11·2 answers
  • AB passes through A(-3,0) and B(-6, 5). What is the equation of the line that passes through the origin and is parallel to AB?
    13·1 answer
  • use the quadratic formula to slove the equation. if necessary, round to the nearest hundredth. x^2+3=-4x
    7·1 answer
  • Identify the slope of the following line y = - 2x + 7<br> Pleasee
    8·2 answers
  • The difference of two numbers is 7. Three times the greater number is 72. Find the numbers​
    15·2 answers
  • What are the zeros of f(x) = x2+x-20?
    14·2 answers
  • Test question Test question Test question Test question Test question Test question
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!