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
Yield and tensile strengths and modulus of elasticity . with increasing temperature. (increase/decrease/independent)
meriva

Answer:

Yield strength, tensile strength decreases with increasing temperature and modulus of elasticity decreases with increasing in temperature.

Explanation:

The modulus of elasticity of a material is theoretically a function of the shape of curve plotted between the potential energy stored in the material as it is loaded versus the inter atomic distance in the material. The temperature distrots the molecular structure of the metal and hence it has an effect on the modulus of elasticity of a material.

Mathematically we can write,

E(t)=E_o[1-a\frac{T}{T_m}]

where,

E(t) is the modulus of elasticity at any temperature 'T'

E_o is the modulus of elasticity at absolute zero.

T_{m} is the mean melting point of the material

Hence we can see that with increasing temperature modulus of elasticity decreases.

In the case of yield strength and the tensile strength as we know that heating causes softening of a material thus we can physically conclude that in general the strength of the material decreases at elevated temperatures.

6 0
3 years ago
While discussing run-flat tires: Technician A says that some are self-sealing tires and are designed to quickly and permanently
musickatia [10]

Answer:

The correct option is d ( Neither A nor B)

Explanation:

Technician A made 2 mistakes in his statement.Firstly the tire is self supporting not self sealing.

Secondly, this tire does not provide permanent sealing of punctured area option a is incorrect.

This self-supporting tire after being affected with complete air leakage can temporarily bear the load of the car and avoid rolling over a distance of 80 km at a maximum speed of 55 mph. Here is what technician B suggested incorrectly as the tire after being.Here the technician B suggested incorrectly as the tire after being affected with puncture can not travel at any speed so option B is wrong

Since option a and b are incorrect and c is invalid.

4 0
3 years ago
A woodcutter wishes to cause the tree trunk to fall uphill, even though the trunk is leaning downhill. With the aid of the winch
Sedbober [7]

Answer:

The correct answer will be "400.4 N". The further explanation is given below.

Explanation:

The given values are:

Mass of truck,

m = 600 kg

g = 9.8 m/s²

On equating torques at the point O,

⇒  T\times Cos(10+5)\times (1.3+4)=mg\times Sin(5)\times 4

So that,

On putting the values, we get

⇒  T\times Cos(15^{\circ})\times 5.3=600\times 9.8\times Sin(5^{\circ})\times 4

⇒                             T=400.4 \ N

8 0
3 years ago
Assume the availability of an existing class, ICalculator, that models an integer arithmetic calculator and contains: an instanc
shtirl [24]

We connect with computers through coding, often known as computer programming.

<h3>How to code?</h3>
  • We connect with computers through coding, often understood as computer programming.
  • Coding exists similar to writing a set of instructions because it instructs a machine what to do.
  • You can instruct computers what to do or how to behave much more quickly by learning to write code.

class ICalculator {

int currentValue;

int add(int value) {

this.currentValue = currentValue + value;

return currentValue;

}

int sub(int value) {

this.currentValue = currentValue - value;

return currentValue;

}

int mul(int value) {

this.currentValue = currentValue * value;

return currentValue;

}

int div(int value) {

this.currentValue = currentValue / value;

return currentValue;

}

}

public class ICalculator2 extends ICalculator {

int negate() {

if (currentValue != 0)

this.currentValue = -currentValue;

return currentValue;

}

public static void main(String[] args) {

ICalculator2 ic = new ICalculator2();

ic.currentValue=5;

System.out.println(ic.add(2));

System.out.println(ic.sub(5));

System.out.println(ic.mul(3));

System.out.println(ic.div(3));

System.out.println(ic.negate());

}

}

To learn more about code, refer to

brainly.com/question/22654163

#SPJ4

3 0
1 year ago
Describe the engineering design process in your own words.
MrMuchimi

Answer:

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Rolling and Shearing are the types of a)-Bulk Deformation Process b)- Sheet Metal Process c)- Machining Process d)- Both a &amp;
    7·1 answer
  • A market research survey has 15 questions and will be sent to 500 people. What is the total cost to conduct survey if it has a $
    12·1 answer
  • A structural component in the form of a wide plate is to be fabricated from a steel alloy that has a plane-strain fracture tough
    10·1 answer
  • A vernier caliper will measure in what ( URGENT)
    10·1 answer
  • Assume the triac of an AC discrete output module fails in the shorted state. How would this affect the device connected to this
    5·1 answer
  • When will the entropy value of the universe attained its maximum value?
    13·1 answer
  • An automobile having a mass of 1100 kg initially moves along a level highway at 110 km/h relative to the highway. It then climbs
    7·1 answer
  • The W16x50, steel beam below has a span of 26' and is subjected to a 2.3 k/ft uniform distributed loading. If a 8 kip load is al
    8·1 answer
  • Scientists use characteristics to compare stars. Match each characteristic on the left with the statement on the right that uses
    15·1 answer
  • Which of the following describes a tropical grassland environment?
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!