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 19:40
Neoli is a nurse who works each day from 8: 00 am to 4: 00 pm at the blood collection centre. she takes 45 minutes for her lunch break. on average, it takes neoli 15 minutes to collect each sample and record the patient's details. on average, how many patients can neoli see each day?
Answers: 3
question
Mathematics, 21.06.2019 21:00
You buy five cds at a sale for $5.95 each. write an expression for the total cost of the cds.then use the distributive property and mental math to evaluate the expression.
Answers: 2
question
Mathematics, 21.06.2019 21:30
The perimeter of a rectangular lot of land is 436 ft. this includes an easement of x feet of uniform width inside the lot on which no building can be done. if the buildable area is 122 ft by 60 ft, determine the width of the easement. select one: a. 9 feet b. 18 feet c. 4.5 feet d. 7 feet
Answers: 3
question
Mathematics, 21.06.2019 21:30
On #16 : explain how factoring a trinomial, ax^2+ bx+ c, when a does not equal 1 different from factoring a trinomial when a = 1.
Answers: 2
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