1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex73 [517]
3 years ago
7

Let CFG G be the following grammar.

Engineering
2 answers:
adoni [48]3 years ago
6 0

Answer:

See Explanation Below

Explanation:

Given

S → aSb | bY | Y a

Y → bY | aY | ε

Giving a simple description of L(G) in English. The description is as follows;

This means that L(G) contains a string of a's and b's such that the following are true;

1. the string starts with n a’s and m b’s, where n and m can be zero, but not at the same time,and at least one of option 2 and option 3

2. and has any number of a’s or b’s followed by an a

3. ab followed by any number of a’s and b’s

Note that n and m represent numerical digits

Using the description to give a CFG for L(G), the complement of L(G) is written as L'(G)

L'G are elements not in L(G) and they are

L'(G) =a^n b (a∪b) * b^n ∪ a^n (a∪b) * ab^n

valentinak56 [21]3 years ago
4 0

Answer:

The answer in the explanation section

Explanation:

The context free grammar is equal to:

S → aSb|bY|Ya

Y → bY|aY|ε

The language L(G) is equal to:

Y → bY

Y → aY

Y → ε

S → aSb

S → bY

S → Ya

If S → Ya, thus:

S → ∈a

S → a

If S → bY:

S → ∈b

S → b

If S → aSb:

S → abYb

S → abbYb

If S → bY:

S → bbY

S → bb∈

S → bb

From all this cases, the languaje is the follow:

L(G)=[a,b,abbb,bb...]

The description of L(G) is:

-strings made up of a consecutive number of a length a, that can vary from 1 to infinity.

-strings made up of a consecutive number of a length b, that can vary from 1 to infinity.

-strings whose start symbol a is followed by number b

-strings whose start symbol b is followed by number a

-strings beginning with the symbol a and ending with the symbol b

-strings beginning with the symbol b and ending with the symbol a

The grammar for L(G) is equal to a^{i} b^{i} if i\geq 0\\

The CFG for L(G) is equal to:

S → aSb|∈

S → abb∈b

S → abbb

You might be interested in
An amplifier which needs a high input resistance and a high output resistance is : Select one: a. A voltage amplifier b. None of
True [87]

Answer:

None of these

Explanation:

There are different types of amplifiers, and each has different characteristics.

  • Voltage amplifier needs high input and low output  resistance.
  • Current amplifier needs Low Input and High Output  resistance.
  • Trans-conductance amplifier Low Input and High Output resistance.
  • Trans-Resistance amplifier requires High Input and Low output  resistance.

Therefore, the correct answer is "None of these "

3 0
3 years ago
Can you prove that the two bleu areas are the same without numbers please?
Svet_ta [14]

Answer:

\small{\boxed{\tt{\colorbox{green}{✓Verified\:answer}}}}\:

Just draw a line from point D join to point E

The triangle formed DME will be congruent to AMC

6 0
3 years ago
4. Which 2D shape on the left would be used to make the 3D shape on the right? (1 pt.)
dexar [7]

it would be a bc its a sqare?well 3d is like you can say a cube 2d is like flat

Explanation:

7 0
2 years ago
When in regular operation, ash and other debris should be removed _______ from the combustion chamber of a wood-burning heater.
Klio2033 [76]

Answer:

    Daily from the combustion chamber of a wood-burning heater.

<h3>Explanation:</h3>
  • As a wood stove heats up, it radiates heat through the walls and top of the stove
  • This radiant heat warms the immediate area and can be carried into other parts of the home via the home's natural airflow.
  • Electric or convection-powered fans can help circulate this heat to warm a larger area.

To learn more about it, refer

to brainly.com/question/23275071

#SPJ4

8 0
2 years ago
The bar DA is rigid and is originally held in the horizontal position when the weight W is supported from C. The wires are made
Rom4ik [11]

Answer:

W = 112 lb

Explanation:

Given:

- δb = 0.025 in

- E = 29000 ksi      (A-36)

- Area A_de = 0.002 in^2

Find:

Compute Weight W attached at C

Solution:

- Use proportion to determine δd:

                              δd/5 = δb/3

                              δd = (5/3) * 0.025

                              δd = 0.0417 in

- Compute εde i.e strain in DE:

                               εde = δd / Lde

                               εde = 0.0417 / 3*12

                               εde = 0.00116

- Compute stress in DE, σde:

                               σde = E*εde

                               σde = 29000*0.00116

                               σde = 33.56 ksi

- Compute the Force F_de:

                               F_de = σde *A_de

                               F_de = 33.56*0.002

                               F_de = 0.0672 kips

- Equilibrium conditions apply:

                               (M)_a = 0

                               3*W - 5*F_de = 0

                               W = (5/3)*F_de

                              W = (5/3)* 0.0672 = 112 lb

4 0
3 years ago
Other questions:
  • A flocculation basin equipped with revolving paddles is 60 ft long (the direction of flow). 45 ft wide, and 14 ft deep and treat
    11·1 answer
  • LUNES MARTES MIÉRCOLES JUEVES VIERNES SÁBADO DOMINGO
    10·1 answer
  • Let Deterministic Quicksort be the non-randomized Quicksort which takes the first element as a pivot, using the partition routin
    13·1 answer
  • A mercury thermometer has a cylindrical capillary tube with an internal diameter of 0.2 mm. If the volume of the thermometer and
    10·1 answer
  • What is the function of engineering
    6·1 answer
  • Give me uses of a grinding machine in agriculture.
    15·1 answer
  • FREEEEEE POOIIIINTS RIGHT HERE EVERYONE LEVEL UPPPP​
    13·2 answers
  • 2. Ang sangay na nagbibigay-kahulugan sa mga batas ng bansane
    8·1 answer
  • Cual es el costo del kwh
    8·1 answer
  • Drivers education - Unit 3
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!