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
The Torricelli's theorem states that the (velocity—pressure-density) of liquid flowing out of an orifice is proportional to the
Sergeeva-Olga [200]

Answer:

The correct answer is 'velocity'of liquid flowing out of an orifice is proportional to the square root of the 'height'  of liquid above the center of the orifice.

Explanation:

Torricelli's theorem states that

v_{exit}=\sqrt{2gh}

where

v_{exit} is the velocity with which the fluid leaves orifice

h is the head under which the flow occurs.

Thus we can compare the given options to arrive at the correct answer

Velocity is proportional to square root of head under which the flow occurs.

4 0
3 years ago
A standard penetration test has been conducted on a coarse sand at a depth of 16 ft below the ground surface. The blow counts ob
scoray [572]

Solution :

Given :

The number of blows is given as :

0 - 6 inch = 4 blows

6 - 12 inch = 6 blows

12 - 18 inch = 6 blows

The vertical effective stress $=1500 \ lb/ft^2$

                                              $= 71.82 \ kN/m^2$

                                             $ \sim 72 \ kN/m^2 $

Now,

$N_1=N_0 \left(\frac{350}{\bar{\sigma}+70} \right)$

$N_1 = $ corrected N - value of overburden

$\bar{\sigma}=$ effective stress at level of test

0 - 6 inch, $N_1=4 \left(\frac{350}{72+70} \right)$

                      = 9.86

6 - 12 inch, $N_1=6 \left(\frac{350}{72+70} \right) $

                        = 14.8

12 - 18 inch, $N_1=6 \left(\frac{350}{72+70} \right) $

                         = 14.8

$N_{avg}=\frac{9.86+14.8+14.8}{3}$

       = 13.14

       = 13

8 0
2 years ago
Select four examples of fluid or pneumatic power systems.
Dennis_Churaev [7]

Answer:

Students learn about the fundamental concepts important to fluid power, which includes both pneumatic (gas) and hydraulic (liquid) systems. Both systems contain four basic components: reservoir/receiver, pump/compressor, valve, cylinder.

Explanation:

8 0
3 years ago
Read 2 more answers
A copper-nickel alloy of composition 60 wt% Ni-40 wt% Cu is slowly heated from a temperature of 1250°C (2280 °F). (a) At what te
makkiz [27]

Answer:

a. The very first liquid process, when heated from 1250 degree Celsius, is expected to form at the temperature by which the vertical line crosses the phase boundary (a -(a + L)) which is about <em>1310 degree Celsius. </em>

b. The structure of that first liquid is identified by the intersection with ((a+ L)-L) phase boundary; <em>47wt %of Ni</em> is of a tie line formed across the (a+ L) phase area <em>at 1310 degrees.</em>

c. To find the alloy's full melting, it is determined that the intersection of the same vertical line at 60 wt percent Ni with (a -(a+L)) phase boundary is around <em>1350 degrees.</em>

c. The structure of the last remaining solid before full melting correlates to the intersection with the phase boundary (a -(a + L), of the tie line built at 1350 degrees across the (a + L) phase area, <em>being 72wt % of Ni.</em>

4 0
3 years ago
Give the approximate temperature (in K) at which creep deformation becomes an important consideration for each of the following
andrezito [222]

Answer:

691K, 543K, 725K, 1473K, 240K, 373K

Explanation:

Creep deformation of any metal is the transformational tendency of a metal to distort rapidly or slowly when attacked by any form of mechanical stress. The temperature significant for a metal to deform is gotten by the division of the actual temperature of the metal by its melting point. This is termed homologous temperature which is 0.4 or higher. It is calculated by the equation:

0.4Tm

Therefore for the listed metals...

For Nickel, 0.4Tm = 0.4 ×(1455 + 273) = 691 K

For Copper, 0.4Tm = 0.4 ×(1085 + 273) = 543 K

For Iron, 0.4Tm = 0.4 ×(1538 + 273) = 725 K

For Tungsten, 0.4Tm = 0.4 ×(3410 + 273) = 1473 K

For Lead, 0.4Tm = 0.4 × (327 + 273) = 240 K

For Aluminium, 0.4Tm = 0.4 ×(660 + 273) = 373 K

5 0
3 years ago
Other questions:
  • Please read
    6·1 answer
  • You have just finished your OST takeoffs for a single-story home and found 175 LF of interior walls with 2x6 studs 14" OC. The h
    14·1 answer
  • Define ""acidity"" of an aqueous solution. How do you compare the strength of acidity of solutions ?
    6·1 answer
  • Water discharging into a 10-m-wide rectangular horizontal channel from a sluice gate is observed to have undergone a hydraulic j
    12·1 answer
  • You have been assigned to design an open cylindrical storage tank 4 meters tall with a diameter of 8 meters to be made out of A-
    13·1 answer
  • WILL MARK BRAINLIST I need help on this asap thanks
    15·1 answer
  • Ppman2000 Aye Get On Treasure Quest and Join Masons Kingdom :D
    10·1 answer
  • Which design activity is part of the design for manufacturability (DFM) methodology?
    10·1 answer
  • A smooth ceramic sphere (SG 5 2.6) is immersed in a fl ow of water at 208C and 25 cm/s. What is the sphere diameter if it is enc
    11·1 answer
  • Which level of acceleration should you use when accelerating on a short highway entry ramp?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!