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
slega [8]
3 years ago
15

Prove the following languages are nonregular, once using the pumping lemma and once using the Myhill-Nerode theorem. When using

the pumping lemma, try to use the most general (least restrictive) case:i) The language where the longest string of consecutive a's is longer than the longest string of consecutive b'sii) aibjajiii) aibjck, where k ≤ i+jiv) aibjck, where i is neither the least nor greatest out of i,j, and k.
Engineering
1 answer:
VashaNatasha [74]3 years ago
8 0

Answer:

For any string, we use s = xyz

Explanation:

The pumping lemma says that for any string s in the language, with length greater than the pumping length p, we can write s = xyz with |xy| ≤ p, such that xyi z is also in the language for every i ≥ 0. For the given language, we can take p = 2.

Here are the cases:

  • Consider any string a i b j c k in the language. If i = 1 or i > 2, we take x = \epsilon   and y = a. If i = 1, we must have j = k and adding any number of a’s still preserves the membership in the language. For i > 2, all strings obtained by pumping y as defined above, have two or more a’s and hence are always in the language.
  • For i = 2, we can take    and y = aa. Since the strings obtained by pumping in this case always have an even number of a’s, they are all in the language.
  • Finally, for the case i = 0, we take x = \epsilon  , and y = b if j > 0 and y = c otherwise. Since strings of the form b j c k are always in the language, we satisfy the conditions of the pumping lemma in this case as well.
You might be interested in
Drag each item to show if it is an element or not an element.
Flauer [41]

Answer:

CARBON

Explanation:

HOPE THIS HELPS SORRY FOR CAPS

5 0
3 years ago
Robots are made up of what
Nataly [62]

Answer:

Metal

Explanation:

Metal

8 0
3 years ago
Diesel-fueled generators are frequently used as backup electrical power sources for homes and hospitals. Consider a Diesel power
Sergeu [11.5K]

Answer:

a. C12H23 + 84.5 moles of air —-> 12CO2(g)+ 11.5H2O(g)

b. 3.2kg of CO2 per 1kg of C12H23

c. HVV of C12H23 is -1724.5 KCal/mol

d. Total weight required is 30.742kg

e. The amount of CO2 produced per kg of C12H23 is too much. CO2 is harmful to the environment and should be produced in weights as low as possible

Explanation:

Please check attachment for complete solution and step by step explanation

3 0
3 years ago
A worker is transporting dirt using a wheelbarrow. The handle is four feet long, the distance from the center of the wheelbarrow
Margarita [4]

Answer:

ewjerhkj

Explanation:

gkkgkjgfe

7 0
3 years ago
Consider the following fragment of C code:
Sergio039 [100]

Answer:

711; 202

Explanation:

MIPS code for the C fragment:

addi $t6, $zero, 101 # the loop termination value

add $t0, $zero, $zero # i = 0

addi $t2, $a0, 0 # ptr to current A[i]

addi $t3, $a1, 0 # ptr to current B[i]

loop: lw $t4, 0($t3) # load B[i]

add $t4, $t4, $s0 # B[i] + c

sw $t4, 0($t2) # store in A[i]

addi $t0, $t0, 1 # i++

addi $t2, $t2, 4 # ptr to next A[i]

addi $t3, $t3, 4 # ptr to next B[i]

bne $t0, $t6, loop # if i < 101, goto loop

The loop is executed 101 times and the loop contains 7 statements. There are 4 statements outside the loop. Therefore, the total number of instructions executed is 4 + (7*101) = 711.

The total number of memory data reference: 101 * 2 = 202.

7 0
3 years ago
Other questions:
  • 5. A typical paper clip weighs 0.59 g and consists of BCC iron. Calculate (a) the number of
    5·1 answer
  • How is an electric generator like an electric motor in reverse?
    13·1 answer
  • What was the Strategic Air Command?
    15·2 answers
  • he following is true for a Function Generator (select all that apply): Select one or more: a. It produces a variety of patterns
    12·1 answer
  • 70 POINTS!!!!Showing results for Select the correct images. James is planning on registering for a course in electrical engineer
    5·2 answers
  • Investiga por que esta simple actividad puede ayudar a mejorar las condiciones ambientales que tu comunidad?
    6·1 answer
  • 10. Identify one material we Mine and what we make with that material
    6·1 answer
  • How do I find v0 using Kirchhoff's laws and Ohm's law? The answer is 25V but I'm confused about how to get that.
    11·1 answer
  • State three means of operating a power tool
    5·1 answer
  • When the grounded conductor is to be spliced in a 12-inch by 12-inch junction box, there shall be at least ? of free conductor l
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!