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
Please solve both parts of the following question. Please show all work and all steps clearly...
Please solve both parts of the following question. Please show all work and all steps clearly and type out the solutions. Please do not copy and paste solutions from the other question posted on chegg that answers these questions. instead, please write your own individual answers solving them differently than the answers posted before on chegg. solve these problems differently and provide new solutions. 1a.) Estimate the first eigenvalue of x" + (lambda)(e^t)(x)=0, x(0)=x(2)=0 for part 1a, the solution should...
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 answer and provide explanation on how to solve these problems. Thank you! 1) A block...
Please answer and provide explanation on how to solve these problems. Thank you! 1) A block of mass 5.67 kg rests on a horizontal table. The block is pushed with a force of 70.2N that makes an angles of 25.0 degrees with the horizontal. The coefficient of kinetic friction between the block and surface of the table is 0.256. What is the acceleration of the block? What is its speed after traveling 2.30m? 2) The volume and the pressure of...
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT