(a) Prove that the language L = {12/3221} is not regular by using the Pumping Lemma....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
(a) Prove that the language L₁ = {12/3221} is not regular by using the Pumping Lemma. Use the string 1"2"32" and i = 3 at appropriate points in the proof. (b) Write out the proof of the same result which uses the string 132 and i=0 instead. Which steps are different? Which steps remain the same? (e) There are some errors in the proof below that the language L₂ = {1'2' #32 @2'1'} is not context-free. Find and correct all such errors. The best way to do this is to write out the correct proof, highlighting the differences between the correct proof and the one below. Claim: The language L₂ = {12 #32 @21'} is not context-free. Proof: Assume L2 is regular. Then the Pumping Lemma applics and so for some n1 such that for some w L such that wn, w = xyzuv where • lyzu❘ ≤n ⚫y and uλ ry' zu've L for all i > 0 w= Choose w 12" 32" @2"1" and so we L and w≥n. So by the Pumping Lemma w = xyzuv = 12 #32@2"1" and lyzul <n. This means that y and u can contain at most two of 1, 2 and 3. We will refer to the part of the string before #as zone 1, the part of the string between # and @ as zone 2, and the part of the string after @as zone 3. Now if y or u contains # or @, then clearly ryzuv & L, as this would contain two occurrences of either # or @. Hence neither unor v contains either # or @. Now note that both y and u can only cover at most two of zone 1, zone 2, and zone 3, as yzul <n. This means that ryzuv € L, as one of the zones will have the same string as w, but the other two will have longer strings, and hence ryzuv is not of the form 12 #3202'1'. This is a contradiction, and so L2 is not context-free. (d) Let L be a regular language over the alphabet {0, 1}. Use the Pumping Lemma to show that n≥1 such that for all we L where wn, there is another string such that rЄL and [r] <n. (a) Prove that the language L₁ = {12/3221} is not regular by using the Pumping Lemma. Use the string 1"2"32" and i = 3 at appropriate points in the proof. (b) Write out the proof of the same result which uses the string 132 and i=0 instead. Which steps are different? Which steps remain the same? (e) There are some errors in the proof below that the language L₂ = {1'2' #32 @2'1'} is not context-free. Find and correct all such errors. The best way to do this is to write out the correct proof, highlighting the differences between the correct proof and the one below. Claim: The language L₂ = {12 #32 @21'} is not context-free. Proof: Assume L2 is regular. Then the Pumping Lemma applics and so for some n1 such that for some w L such that wn, w = xyzuv where • lyzu❘ ≤n ⚫y and uλ ry' zu've L for all i > 0 w= Choose w 12" 32" @2"1" and so we L and w≥n. So by the Pumping Lemma w = xyzuv = 12 #32@2"1" and lyzul <n. This means that y and u can contain at most two of 1, 2 and 3. We will refer to the part of the string before #as zone 1, the part of the string between # and @ as zone 2, and the part of the string after @as zone 3. Now if y or u contains # or @, then clearly ryzuv & L, as this would contain two occurrences of either # or @. Hence neither unor v contains either # or @. Now note that both y and u can only cover at most two of zone 1, zone 2, and zone 3, as yzul <n. This means that ryzuv € L, as one of the zones will have the same string as w, but the other two will have longer strings, and hence ryzuv is not of the form 12 #3202'1'. This is a contradiction, and so L2 is not context-free. (d) Let L be a regular language over the alphabet {0, 1}. Use the Pumping Lemma to show that n≥1 such that for all we L where wn, there is another string such that rЄL and [r] <n.
Expert Answer:
Answer rating: 100% (QA)
SOLUTION A To prove that the language L1 1i 2j 32i 2j 1i is not regular using the Pumping Lemma well assume that L1 is regular and then derive a contradiction Here are the steps of the proof Assume th... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Given s(t) = 3 + 9t, where s(t) is in feet and t is in seconds, find each of the following. a) v(t) b) a(t) c) The velocity and acceleration when t = 2 sec a) v(t) = ||
-
RMC Inc. is a small firm that produces a variety of chemical products and is interested in maximizing its total profit contribution, using the following linear model. where Max 40x30x s.t. 5x + 2x20...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The property is located at the intersection of two heavily traveled major arteries. It is a new, glass-walled, five-story office building containing 50,000 total square feet-40,000 of which is...
-
FIGURE 2-40 shows a v-versus-t plot for the hammer dropped by the carpenter in Problem 74. Notice that the times when the hammer passes the two windows are indicated by shaded areas. (a) Is the area...
-
Boat Refit Inc. produces and sells custom parts for powerboats. The company uses a costing system based on actual costs. Selected accounting and production information for fiscal 2012 is as follows:...
-
Presented below is a list of accounting transactions for the Davis Company. Classify each of the transactions as an operating (O) activity transaction, an investing (1) activity transaction, a...
-
Solve the linear programming model formulated in Problem 13 for Irwin Mills by using the computer. a. If Irwin Mills can obtain additional cotton or processing time, but not both, which should it...
-
Question 18 The credit term 2/10, n/30 means: That there is a 10% discount if payment is received within 30 days. O That after 10 days 2% interest is charged. O That there is a 2% discount if payment...
-
Based on Figure, Joe, one of your systems analysis team members, made the following entry for the data dictionary used by Marilyns Tours: DATA ELEMENT = TOURIST* * * * PAYMENT ALIAS = TOURIST PAY...
-
Ken is 63 years old and unmarried. He retired at age 55 when he sold his business, Understock.com. Though Ken is retired, he is still very active. Ken reported the following financial information...
-
= Let G=(V, E) be a connected undirected graph, and for every edge e E, let c(e) be its cost. Edge costs do not need to be positive. We say that H (U, F) is a subgraph of G if U CV, FCUXU, and FC E....
-
A one-year Treasury bill currently offers a 5% rate of return. A two-year Treasury note offers a 5.5% rate of return. Under the expectations theory, what rate of return do investors expect a one-year...
-
A company wants to expand to 2 new locations in New York. Company executives believe that this would initially cost $20 Millions to expand. The yearly FCF will begin at $4 milion in year 1 and grow...
-
Explain why Brazil and Mexico in the 1990s were able to run trade surpluses despite being in a current account deficit situation. Can economic policymakers in Kenya rely on this case study to...
-
Dude to guy whom his name Starts with "S" , i'm not kidding anymore, dont solve this question leave it for someone else, if you solve it again i will put your entire name here on another question...
-
Please help me get the latest Russia's information in the year 2022-2023. In sentences please on the below bullets. 1. inflation 2. unemployment rate and public debt 3. How high are corporate taxes...
-
Multiple Choice Questions: 1. The largest component of aggregate demand is? a. Government purchases. b. Net exports. c. Consumption. d. Investment. 2. A reduction in personal income taxes, other...
-
Deborah purchases a new $30,000 car in 2012 to use exclusively in her business. If Deborah does not elect to expense or take bonus depreciation in 2012 and holds the car until it is fully...
-
William sold Section 1245 property for $25,000 in 2012. The property cost $35,000 when it was purchased 5 years ago. The depreciation claimed on the property was $16,000. a. Calculate the adjusted...
-
Mark owns his home and has a $250,000 mortgage related to his purchase of the residence. When his daughter went to college in the fall of 2012, he borrowed $20,000 through a home equity loan on his...
-
Explain why mass transfer correlations for co-flow cannot be used for countercurrent flow.
-
Why are mass transfer coefficients from clean drops higher than mass transfer coefficients in dirty systems? What is the practical significance of this?
-
How do we determine the height of packing required for a concentrated absorber or stripper if \(\mathrm{H}_{\mathrm{G}}\) is not constant?
Study smarter with the SolutionInn App