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
What is the activation energy (Q) for a vacancy formation if 10 moles of a metal have 2.3 X 10^13 vacancies at 425°C?
Yakvenalex [24]

Answer:

Activation\ Energy=2.5\times 10^{-19}\ J

Explanation:

Using the expression shown below as:

N_v=N\times e^{-\frac {Q_v}{k\times T}

Where,

N_v is the number of vacancies

N is the number of defective sites

k is Boltzmann's constant = 1.38\times 10^{-23}\ J/K

{Q_v} is the activation energy

T is the temperature

Given that:

N_v=2.3\times 10^{13}

N = 10 moles

1 mole = 6.023\times 10^{23}

So,

N = 10\times 6.023\times 10^{23}=6.023\times 10^{24}

Temperature = 425°C

The conversion of T( °C) to T(K) is shown below:

T(K) = T( °C) + 273.15  

So,  

T = (425 + 273.15) K = 698.15 K  

T = 698.15 K

Applying the values as:

2.3\times 10^{13}=6.023\times 10^{24}\times e^{-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

ln[\frac {2.3}{6.023}\times 10^{-11}]=-\frac {Q_v}{1.38\times 10^{-23}\times 698.15}

Q_v=2.5\times 10^{-19}\ J

4 0
3 years ago
A step-down transformer (turns ratio = 1:7) is used with an electric train to reduce the voltage from the wall receptacle to a v
SOVA2 [1]

Answer:

wait lemme check it out

Explanation:

6 0
3 years ago
CODE
zalisa [80]

Answer:

Explanation:

I'm not 100% this is what you want, but here it is:

2

3

13

8

11

A

13

6 0
3 years ago
Type the correct answer in the box. Spell all words correctly.
Otrada [13]

Answer:

solar engineering field

5 0
3 years ago
Read 2 more answers
Many radios can be operated either by plugging them into the wall or by using batteries. How can a radio use either source of cu
ch4aika [34]

Answer:

The electric current from the batteries installed in a radio supplies direct current (DC) electricity to the radio components directly as an alternative source to the Alternating Current (AC) converted to DC by the power unit located at the radio end of the cable plugged into the wall outlet.

Explanation:

Part of the power unit in a radio includes an AC to DC converter, which is an electrical circuit that is able to convert the alternating current power input from the wall outlet into a direct current output to the radio with which the radio can work

The alternative source of electric current from the batteries installed in a radio bypasses the AC to DC converter and supplies power directly to the radio so it can also work.

5 0
3 years ago
Other questions:
  • Generally the primary source of all water supply is to be said as
    5·2 answers
  • A resonant six-turn loop of closely spaced turns is operating at 50 MHz. The radius of the loop is λ/30, and the loop is connect
    15·1 answer
  • One of our wifi network standards is IEEE 802.11ac. It can run at 6.77 Gbit/s data rate. Calculate the symbol rate for 801.11ac
    5·1 answer
  • After the load impedance has been transformed through the ideal transformer, its impedance is: + . Enter the real part in the fi
    8·1 answer
  • What does an aeronautical engineer design
    15·1 answer
  • A hollow, spherical shell with mass 2.00kg rolls without slipping down a slope angled at 38.0?.
    15·1 answer
  • A skilled worker with the ability to operate computer numerically controlled (CNC) machines is qualified to work in which of the
    10·1 answer
  • Select the correct answer.
    13·1 answer
  • To remove a spark plug the technician would need a(n) ___socket​
    7·2 answers
  • 30POINTS
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!