Question

In: Computer Science

please provide steps as you solve the question. >>>>>>>>>>>>>>>>>>>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>

please provide steps as you solve the question.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

>>>>>>>>>>>>>>>>>>>>>>>>>>>

Prove that the following languages are not regular using the pumping lemma.

a. ? = {? ?? ?? ? | ?, ? ≥ ?}

b. ? = {? ∈ {?, #} ∗ | ? = ??#??# … #?? ??? ? ≥ ?, ?? ∈ ? ∗ ??? ????? ?, ??? ?? ≠ ?? ??? ????? ? ≠ ?

} Hint: choose a string ? ∈ ? that contains ? #’s.

Solutions

Expert Solution

a. We are given the language .

Let us assume that D is a regular language and let p be the pumping length of D. Suppose we choose a string w from D such that n>p for that string, then according to the pumping lemma we can break w in the following parts such that and

  • and

Since n>p for w, the number of a's in w before the first b must be greater than p. From the third condition above, xy must be equal to and the y thus will also be made of a's. Now, if we pump y (like the first condition) into w, the number of a's before the first b will increase, keeping the number of a's following the last b constant. So, it will no longer be of the form . Hence, this is a contradiction and D is not a regular language.

b. We are given the language .

Let us assume that E is a regular language and let p be the pumping length of E. Suppose we choose a string w from E such that it contains p #'s then according to the pumping lemma we can break w in the following parts such that and

  • and

Here, k will be equal to p+1. We will be having p+1 different number of 0's as 's. Hence the y part must contain more than one #.

If y contains more than one # it will be of the form where and .

If we pump y in w we will be having more than one but all members of E have .

So, this leads to a contradiction. Therefore, E is not a regular language.


Related Solutions

Please solve all parts of the following question. Please show all work and all steps. 1a.)...
Please solve all parts of the following question. Please show all work and all steps. 1a.) Solve x' = x + 3y + 2t y' = x - y + t^2 1b.) Solve x' + ty = -1 y' + x' = 2 1c.) Solve x' + y = 3t y' - tx' = 0
Can you please not solve this on excel. can you show clearly steps you took. Thanks...
Can you please not solve this on excel. can you show clearly steps you took. Thanks An office uses 1,000 photocopies per working day and there are 200 working days per year. Brand A copier costs $3,000 and will produce a total of one million copies before it wears out. Brand B’s copier costs $5,000 and will produce 2 million copies over its life. Maintenance and materials cost 3 cents pr copy with either machine, and neither machine will have...
can you please solve this for me. please write a paragraph for each question and explain...
can you please solve this for me. please write a paragraph for each question and explain your reasoning. 1) assume that you are a full-time worker earning $10/hour, $80/day, $400/week, $20000/year. would you be willing to quit your jobs or keep working if the tax rate was 10%? 20%? 30%? 40%? what do you think is the best tax rate? what do you think is the best tax rate? 2)the state of California has decided to increase funding for public...
Please follow the comment and solve question 6 and question 7 if you want to get...
Please follow the comment and solve question 6 and question 7 if you want to get thumbs up. Thank you. 6- Let xn ≥0 for all n∈N. 6-1) If xn →0, show that√xn →0. 6-2) If xn →x, show that√xn →√x. Let A = lim n→∞an. Use an+1 =√2+an, the result of Exercise 6 and limit laws to prove that A = 2.
Solve the differential equation y'''-3y''+4y=e2x using variation of parameters and wronskians. Please provide steps especially after...
Solve the differential equation y'''-3y''+4y=e2x using variation of parameters and wronskians. Please provide steps especially after finding the wronskians.
1) (note: Please also provide the excel formulas used to solve it )  You work for a...
1) (note: Please also provide the excel formulas used to solve it )  You work for a soft-drink company in the quality control division. You are interested in the standard deviation of one of your production lines as a measure of consistency. The product is intended to have a mean of 12 ounces, and your team would like the standard deviation to be as low as possible. You gather a random sample of 18 containers. Estimate the population standard deviation at...
Please provide details how to solve it with excel.thank you! 1) Migraine and Acupuncture: A migraine...
Please provide details how to solve it with excel.thank you! 1) Migraine and Acupuncture: A migraine is a particularly painful type of headache, which patients sometimes wish to treat with acupuncture. To determine whether acupuncture relieves migraine pain, researchers conducted a randomized controlled study where 153 patients diagnosed with migraine headaches were randomly assigned to one of two groups: treatment or control. 68 patients in the treatment group received acupuncture that is specifically designed to treat migraines. 85 patients in...
Please do it in MS Excel Required: Solve these question in Microsoft Excel Question 01: You...
Please do it in MS Excel Required: Solve these question in Microsoft Excel Question 01: You want to retire on the day you have $1,000,000 is your savings account. You expect to earn 4 percent compounded monthly, on your money during your retirement. Your plan is to withdraw $4500 a month as retirement income from this account. How many years can you be retired until you run out of money? . Question 02: you are able to pay mortgage payments...
Could you please solve these problems and explain the steps? Consider a 3-input function G whose...
Could you please solve these problems and explain the steps? Consider a 3-input function G whose POS form is known to contain the maxterm X + Y + Z. 1) What is the maximum number of minterms that the SOP form of G can have such that no simplification is possible? Derive the corresponding Boolean expression for both SOP form and POS form. Can G0 be simplified? 2) Let us assume that all minterms that do not exist in the...
on the following question please show the formula for the steps and from were you get...
on the following question please show the formula for the steps and from were you get the numbers) Cost-volume-profit analysis Di & Co. has the following budgeted information for a contract: - Fixed costs $ 270,000 Variable cost per unit $         20 Selling price per unit   $         40 Budgeted output / sales units          15,000 Required: (a) Compute the number of units that must be sold to breakeven.                              (b) How many units must be sold to earn $80,000 target profit?                                    ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT