Question

Find the language generated by the following CFG. Express the language as a formula involving powers...

Find the language generated by the following CFG. Express the language as a formula involving powers of the terminals and the associated conditions on the powers.

S → aa S ddd | T

T → b T cc | ε

Homework Answers

Answer #1

Given Data-

S -> aa S ddd | T

T -> b T cc | ε

So we can write that,

S -> aa T ddd                                                         T -> ε

S -> aa ε ddd                                   

S -> aa ddd -eq.1

S -> aa T ddd T -> b T cc

S -> aa b T cc ddd T -> ε

S -> aa b cc ddd -eq.2

From eq.1 and eq.2, we can say that

L={anbmcxdy} where,

n >= 2,

m >= 0,

x >=2

y >= 3

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Convert the following CFG to its equivalent CNF. S → aa S ddd | T T...
Convert the following CFG to its equivalent CNF. S → aa S ddd | T T → b T cc | ε
Automata Theory and Formal Languages Problems 1: Consider the following two grammars. Grammar G1- S →...
Automata Theory and Formal Languages Problems 1: Consider the following two grammars. Grammar G1- S → aSb / ∈ Grammar G2- S → aAb / ∈, A → aAb / ∈ a. is G1=G2 b. What is the grammar generated by the expression Problem 2: Let us consider the grammar. G2 = ({S, A}, {a, b}, S, {S → aAb, aA → aaAb, A → ε } ) Derive aaabbb Problem 3: Suppose we have the following grammar. G: N...
Consider the following reaction and associated equilibrium constant: aA(g)+bB(g)⇌cC(g), Kc = 3.0 Part A Find the...
Consider the following reaction and associated equilibrium constant: aA(g)+bB(g)⇌cC(g), Kc = 3.0 Part A Find the equilibrium concentrations of A, B, and C for a=1, b=1, and c=2. Assume that the initial concentrations of A and B are each 1.0 M and that no product is present at the beginning of the reaction. Express your answer using two significant figures. Enter your answers separated by commas. [A], [B], [C] = m M
Consider the following reaction and associated equilibrium constant: aA(g)+bB(g)⇌cC(g), Kc = 5.0 a.) Find the equilibrium...
Consider the following reaction and associated equilibrium constant: aA(g)+bB(g)⇌cC(g), Kc = 5.0 a.) Find the equilibrium concentrations of A, B, and C for a=1, b=1, and c=2. Assume that the initial concentrations of A and B are each 1.0 M and that no product is present at the beginning of the reaction. Express your answer using two significant figures. Enter your answers separated by commas. b.) Find the equilibrium concentrations of A, B, and C for a=1, b=1, and c=1....
In a generic chemical reaction involving reactants A and B and products C and D, aA+bB→cC+dD,...
In a generic chemical reaction involving reactants A and B and products C and D, aA+bB→cC+dD, the standard enthalpy ΔrH∘ of the reaction is given by ΔrH∘=cΔfH∘(C)+dΔfH∘(D) −aΔfH∘(A)−bΔfH∘(B) Notice that the stoichiometric coefficients, a, b, c, d, are an important part of this equation. This formula is often generalized as follows, where the first sum on the right-hand side of the equation is a sum over the products and the second sum is over the reactants: ΔrH∘=∑productsnΔfH∘−∑reactantsmΔfH∘ where m and...
In a generic chemical reaction involving reactants A and B and products C and D, aA+bB→cC+dD,...
In a generic chemical reaction involving reactants A and B and products C and D, aA+bB→cC+dD, the standard enthalpy ΔH∘rxn of the reaction is given by ΔH∘rxn=cΔH∘f(C)+dΔH∘f(D) −aΔH∘f(A)−bΔH∘f(B) Notice that the stoichiometric coefficients, a, b, c, d, are an important part of this equation. This formula is often generalized as follows, where the first sum on the right-hand side of the equation is a sum over the products and the second sum is over the reactants: ΔH∘rxn=∑productsnΔH∘f−∑reactantsmΔH∘f where m and...
Find the particular antiderivative that satisfies the following conditions: A) p'(x)=-20/X^2 ; p(4)=3 B) p'(x)=2x^2-7x ;...
Find the particular antiderivative that satisfies the following conditions: A) p'(x)=-20/X^2 ; p(4)=3 B) p'(x)=2x^2-7x ; p(0)=3,000 C) Consider the function f(x)=3cos⁡x−7sin⁡x. Let F(x) be the antiderivative of f(x) with F(0)=7 D) A particle is moving as given by the data: v(t)=4sin(t)-7cos(t) ; s(0)=0
Constants | Periodic Table Learning Goal: To understand how standard enthalpy of reaction is related to...
Constants | Periodic Table Learning Goal: To understand how standard enthalpy of reaction is related to the standard heats of formation of the reactants and products. The standard enthalpy of reaction is the enthalpy change that occurs in a reaction when all the reactants and products are in their standard states. The symbol for the standard enthalpy of reaction is ΔH∘rxn, where the subscript "rxn" stands for "reaction." The standard enthalpy of a reaction is calculated from the standard heats...
QUESTION 1 Which one of the following would NOT be necessary for an offer to have...
QUESTION 1 Which one of the following would NOT be necessary for an offer to have legal standing? A. The language must reflect the intent to become a party to a contract. B. All of the conditions under which the offer would be terminated must be identified. C. All the significant terms and/or conditions must be contained in the offer. D. The offer must be effectively communicated to the other party. 3 points    QUESTION 2 Which one of the...
1. Answer EITHER part (a) OR part (b). (a) A gas scrubber on an oilrig discharged...
1. Answer EITHER part (a) OR part (b). (a) A gas scrubber on an oilrig discharged gas periodically such that an accumulation of hydrocarbon gas nearby had occurred. A contractor welder was dispatched to a job immediately adjacent to the area and it being a shift change and personnel unavailable temporarily, the welder decided to commence welding. As a consequence, an incident occurred. Describe briefly: (i) what you imagine was the incident including any hazards existing prior to or during...