anynomous8028 anynomous8028
  • 03-03-2020
  • Computers and Technology
contestada

Let G be the grammar

S --> abSc | A
A --> cAd | cd

a) Give a left-most derivation of ababccddcc.
b) Build the derivation tree for the derivation in part (a).
c) Use set notation to define L(G).

Respuesta :

mudamoon97
mudamoon97 mudamoon97
  • 05-03-2020

Answer:

Explanation:

a) The Left-most derivataion for ababccddcc

S ⇒ AB

L.M.D

→ aAbB

→ aabbB

→ aabb CBd

→ aabb CCdd

b) Derivation tree for the derivation in part(a)

The attached diagram ilustrate the three derivation

c) To define L(G) with set notation

L(G) = {a ∧n b ∧n |n ≥ 0}.

Ver imagen mudamoon97
Answer Link

Otras preguntas

How is the numeral 35.012 written in words and why
in an expression(8/9) squared (-81)+3/5dividedby-9/10
What is the numerator or denominator of 4/5
How many minutes are in 36 hours?
Does the depth of a pan affect how water freezes?
What is two thirds minus six thirds
in what ways is climate controlled by the sun and the water cycle ?
When was William Shakespeare born
What three islands are located off the East African coast
is it possible for a distance versus-time graph to be a vertical line?