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
A collective noun names a group of more than one person,place, or thing<br> True or faults
ehidna [41]

Answer: A collective noun does name a group of people like a family and also it can also be for objects too.

Collective noun: A noun that is in singular form but that refers to a group of people of things

Explanation:

8 0
3 years ago
Read 2 more answers
In the hydrodynamic entrance region of a pipe with a steady flow of an incompressible liquid
Yakvenalex [24]

Answer:

D. The maximum velocity decreases with distance from the entrance.

Explanation:

This is because over time, the pressure with with the incompressible liquid enters decreases with distance from the entrance

6 0
3 years ago
Read 2 more answers
Ethan is an engineer who is trying to create a totally quiet fluid power system. Which part of the fluid power system will he ne
creativ13 [48]

Answer:

C: compressor

Explanation:

As it states in the text, Unfortunately, the pump or compressor in a fluid power system is often noisy and heavy. This aspect of the fluid power system is a critical area of interest for engineers and scientists who seek to improve fluid power.

3 0
3 years ago
Read 2 more answers
Exercise 5.Water flows in a vertical pipe of 0.15-m diameter at a rate of 0.2 m3/s and a pressureof 275 kPa at an elevation of 2
wariber [46]

Answer:

a. Pressure head: 33.03,

Velocity Head: 6.53

b. Pressure Head: -1.97,

Velocity Head: 6.53

Explanation:

a.

Given

Diameter = 0.15-m, radius = 0.075

rate = 0.2 m3/s

Pressure =275 kPa

elevation =25 m.

We'll consider 3 points as the water flow through the pipe

1. At the entrance

2. Inside the pipe

3. At the exit

At (1), the velocity can be found using continuity equation.

V1 = ∆V/A

Where A = Area = πr² = π(0.075)² = 0.017678571428571m²

V1 = 0.2/0.017678571428571

V1 = 11.32 m/s

The value of pressure at point 1, is given by Bernoulli equation between point 1 and 2:

P1/yH20 + V1²/2g + z1 = P2/yH20 + V2²/2g + z2

Substitute in the values

P1/yH20 + 20 = (275 * 10³Pa)/yH20 + 25

P1/yH20 = (275 * 10³Pa)/yH20 + 25 - 25

=> P1/yH20 = (275/9.81 + 5)

P1/yH20 = 33.03

The velocity head at point one is then given by

V2²/2g = 11.32²/2 * 9.8

V2²/2g = 6.53

b.

The value of pressure at point 1, is given by Bernoulli equation between point 1 and 3:

P1/yH20 + V1²/2g + z1 = P3/yH20 + V3²/2g + z3

Substitute in the values

33.03 + 20 = P3/yH20 + 55

P3/yH20 = 33.03 + 20 - 55

=> P1/yH20 = -1.97

The velocity head at point three is then given by

V2²/2g = V3²/2g = 6.53

4 0
3 years ago
Read 2 more answers
An electric motor under steady load draws 9.7 amperes at 110 volts; it delivers 1.25(hp) of mechanical energy. The temperature o
pishuonlain [190]

Answer:

The total rate of entropy generation is 6.665 W/K

Explanation:

Power input = current × voltage = 9.7 × 110 = 1067 W

Power output = 1.25 hp = 1.25 × 746 = 932.5 W

Total power = 1067 + 932.5 = 1999.5 W

Total rate of entropy generation = total power ÷ temperature of the surrounding = 1999.5 W ÷ 300 K = 6.665 W/K

7 0
3 years ago
Other questions:
  • Consider flow in between two parallel plates located a distance H from each other. Fluid flow is driven by the bottom plate movi
    15·1 answer
  • The viscosity of all liquids decreases as the temperature is a) Increased b) decreased c) maintained constant d) fluctuating e)
    12·1 answer
  • Which of the following is NOT a breach of Netiquette?
    7·1 answer
  • Write a static method named fixSpacing that accepts a Scanner representing a file as a parameter and writes that file's text to
    5·1 answer
  • Consider a rectangular fin that is used to cool a motorcycle engine. The fin is 0.15m long and at a temperature of 250C, while t
    5·1 answer
  • If the outside diameter of a pipe is 2 m, the length of a piece of insulation wrapped around it would be a)- 628 cm b)- 12.56 m.
    15·1 answer
  • On July 23, 1983, Air Canada Flight 143 required 22,300 kg of jet fuel to fly from Montreal to Edmonton. The density of jet fuel
    8·1 answer
  • An atom that gained an electron is called​
    10·2 answers
  • Find the total present worth of a series of cash flows with an annual interest rate of 2% per year. Round your answer to the nea
    5·1 answer
  • a) find the state-space representation of the system. b) is the system controllable? why? c) is the system observable? why
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!