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
• ¿Qué les reclamó Dios al pueblo?<br> • ¿Qué consecuencias hubo?
HACTEHA [7]

a quien alos israelitas

8 0
3 years ago
Explain difference(s) between strength, hardness and toughness.
harkovskaia [24]

Explanation:

Step1

Strength is the maximum stress induces in the material under applied load condition. More the strength more will be ability to sustain load. Strength can be measured from tensile test. It has same unit as stress. Generally ductile material has more strength as compare to brittle material.

Step2

Hardness is the resistance to scratch on the material under given load condition. More the hardness more will be the resistance towards scratching of material. Hardness can be measured by Rockwell or Birnell hardness test. This property of metal is opposite to the strength.

Step3

Toughness is the ability to absorb energy under given loading condition up to its fracture point. It is a type of strain energy that is stored in the metal. Generally ductile metal has more toughness as compare to brittle.

4 0
4 years ago
Explain what will happen if the series circuit is closed?
irakobra [83]

Answer:

When the circuit switch is off, no electricity will flow and then the circuit is called an open circuit. Electricity will not flow in open circuit.

5 0
3 years ago
Read 2 more answers
The purpose of pasteurizing milk is to
katen-ka-za [31]

Answer:

i think it c

Explanation:

6 0
3 years ago
Read 2 more answers
Which option identifies the type of device the engineer will develop in the following scenario?
Stells [14]
It would be actuator
4 0
3 years ago
Read 2 more answers
Other questions:
  • A bar of 75 mm diameter is reduced to 73mm by a cutting tool while cutting orthogonally. If the mean length of the cut chip is 7
    10·1 answer
  • 4. A certain tire has a size of P215/65R16. What does the 65 number signify?
    5·1 answer
  • A team member who has been a good worker for many years has recently been doing poor work. You suspect that he may be tired of h
    6·1 answer
  • One proposed technique to reduce outage probability is to use macrodiversity, where a mobile unit’s signal is received by multip
    6·1 answer
  • Parity Detect of Three Inputs 20 pts. (EVEN) a) Draw a function table showing the three data lines and the output function F. 4
    9·1 answer
  • The velocity of a particle which moves along the s-axis is given by v = 2-4t+5t^(3/2), where t is in seconds and v is in meters
    11·2 answers
  • Find vC(t) for t ≥ 0 (in V), assuming the switch was open for a long time when closed at t = 0.
    14·1 answer
  • A closed rigid tank contains water initially at 10,000 kPa and 520ºC and is cooled to a final temperature of 270° C. Determine t
    9·1 answer
  • how to take care of a kid?? this kid is begging me to do something i dont want to help please its a 5yo
    13·1 answer
  • Choose the best compression ratio for an Otto cycle reciprocating engine: a. 5 b. 10 c. 15 d. 20
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!