subject
Mathematics, 10.12.2019 01:31 edjiejwi

Consider the grammar g = (v, t, e, p) for expressions (e for short) such that v = {e, a,+,*}, t = {a,+,*}, e is the starting symbol, and

p = {e -> (e) | e + e | e * e | a}.

a) explain whether g is regular, context-free, or context-sensitive, respectively. explain why or why not.
b) explain the language l(g) that is generated by g, especially, what kind of strings belong to the language. be specific. also, give six shortest strings that belong to l(g).
c) show that (a+a)*(a*(a+a)) belongs to l(g) by showing that it is derivable from e. show every step of derivation.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 18:00
The center of the circumscribed circle lies on line segment and the longest side of the triangle is equal to the of the circle.
Answers: 2
question
Mathematics, 21.06.2019 20:30
What is the difference between the equations of a vertical and a horizontal line?
Answers: 2
question
Mathematics, 21.06.2019 20:30
Kyle and elijah are planning a road trip to california. their car travels 3/4 of a mile per min. if they did not stop driving, how many miles could kyle and elijah drove in a whole day? ? 1 day = 24 hours. plzzz write a proportion i will give you 100 points
Answers: 1
question
Mathematics, 22.06.2019 01:30
The actual length of side y is 22 cm. use the scale drawing to find the actual length of side x. a) 15.2 cm b) 17.1 cm c) 18.0 cm d) 28.3 cm
Answers: 1
You know the right answer?
Consider the grammar g = (v, t, e, p) for expressions (e for short) such that v = {e, a,+,*}, t = {a...
Questions
question
Health, 26.07.2019 06:00
Questions on the website: 13722363