Question

Given a grammar G, G = (Ν, Σ, Π, S), where Ν = { ... }...

Given a grammar G, G = (Ν, Σ, Π, S), where

Ν = { ... }

Σ = { ... }

Π = { ... }

S is ...

What is the language L, L = L(G) ?

Homework Answers

Answer #1

As grammar G is given G = (Ν, Σ, Π, S), where Ν = {S} and Σ = {0, 1} so using this Π = {S → ε, S → 0, S → 1, S → 0S0, S → 1S1} we evaluate a language L by putting non-terminal value and generating new strings that can be a part of language L and accepted by the grammar rule: so L={ ε, 0 , 1, 00,11,000,111,010,101,0000,1111,00100,00000,11111,11011,....} so on and so forth. we will just evaluate a non-terminal with a terminal value and get a resultant string.

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 grammar G = ({S,A,B,C},{a,b},P,S), where P is given below, into the Chomsky Normal Form....
Convert the grammar G = ({S,A,B,C},{a,b},P,S), where P is given below, into the Chomsky Normal Form. S −→ AaA | AB A −→ BB | bAA | ε B −→ bS | b | ε
For a square planar complex ML4 where L is a σ donor and π acceptor, sketch...
For a square planar complex ML4 where L is a σ donor and π acceptor, sketch the following interactions (Assume that the z-axis is perpendicular to the plane of the molecule). a. Interaction of dxy orbital on M with π* orbitals on ligands b. Interaction of dxz orbital on M with π* orbitals on ligands c.Interaction of dx2-y2 orbital on M with π* orbitals on ligands d. Interaction of dz2 orbital on M with π* orbitals on ligands
Obtain a grammar in Chomsky Normal Form (CNF) equivalent to the grammar G with productions P...
Obtain a grammar in Chomsky Normal Form (CNF) equivalent to the grammar G with productions P given S ->aAb | B A ->aA | a B-> bB | b
Define a grammar by setting Σ = {σ} and let F consist of the following instruction...
Define a grammar by setting Σ = {σ} and let F consist of the following instruction formulas. 1.    σ → N V.2.    N → n, for some n  {he, she, José, Sal, Anna}.3.    V → v, for some v  {runs, jumps, skips, falls, swims}.4.    σ → σ P σ.5.    P → p, for some p  {and, while until}.6.    σ → either σ or σ. Consider the following string in the given grammar. Draw the corresponding tree. (Submit a file with a maximum size of 10MB.) Sal runs while Anna...
The valence MO theory sequence for Li2 is: σ(2s) < σ*(2s) < σ(2p) < π(2p)=π(2p) <...
The valence MO theory sequence for Li2 is: σ(2s) < σ*(2s) < σ(2p) < π(2p)=π(2p) < π*(2p)=π*(2p) < σ*(2p) What is the bond order of Li21+?
1. Given a proportion problem where the population proportion π=0.15 and sample size n=50. What is...
1. Given a proportion problem where the population proportion π=0.15 and sample size n=50. What is the sampling distribution of the sample proportion? 2. given a proportion problem where the population proportion π=0.1 and sample size n=40. What is the sampling distribution of the sample proportion? 3. If you take a sample of size n from a distribution that is not normal where the mean and standart deviation are given on the bottom. what is the sampling distribution of the...
Consider the following grammar. Nonterminals are lowercase and terminals are uppercase. s -> c A c...
Consider the following grammar. Nonterminals are lowercase and terminals are uppercase. s -> c A c -> c B | B Which of the following sentences is in the language generated by the grammar? a) BAA b) BBBA c) BBAAAAA d) none of the above
Consider the grammar G with productions as follows: S → AD | BC A → a...
Consider the grammar G with productions as follows: S → AD | BC A → a B → b C → a | AS | BE D → b | BS | AF E → CC F → DD Use the CYK algorithm to test membership of abbaba.
Given the data 2 S(s) + 3 O2(g) → 2 SO3(g) ΔH = −790 kJ S(s)...
Given the data 2 S(s) + 3 O2(g) → 2 SO3(g) ΔH = −790 kJ S(s) + O2(g) → SO2(g) ΔH = −297 kJ SO3(g) + H2O(l) → H2SO4(l) ΔH = −132 kJ use Hess's law to calculate ΔH for the reaction 2 SO2(g) + O2(g) → 2 SO3(g).
For the given grammar below, find the first and follow function sets. Then, construct the parsing...
For the given grammar below, find the first and follow function sets. Then, construct the parsing table. By using the LL(1) parser and the parsing table, find if the given string “acfh” is accepted or rejected. S → aBDh B → cC | ε C → bC | ε D → EF E → g | ε F → f | ε