8. (6 points) Pove that the CFLs are not closed under complementation, i.c., it is possible...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
8. (6 points) Pove that the CFLs are not closed under complementation, i.c., it is possible that A is not a CFL for a CFL A, where A is the complement of A (if needed, review the definition of complement in Question 1 of Homework 2). Hint: We have shown in class that CFLs are not closed under intersection. Prove by contra- diction that if CFLs were closed under complementaion then CFLs would also be closed under intersection. You may also find DeMorgan's law useful, i.e., for two sets A and A2, it holds that A U A = A A (the complement of the union of two sets A and A is equal to the intersection of the complements of A and A). 9. (6 points) In class, we proved that the intersection of a CFL and a regular language is still a CFL. Using this property and the fact that the language {abcm |0 mn} in Question 7(b) is not context free, prove that the following language A is not context free. A = {w | w *, and in w, the number of a's is equal to the number of b's and is larger than or equal to the number of c's}, where = {a, b, c}. For example, both aabcb and cba are in A, but neither baac nor accb is in A. 8. (6 points) Pove that the CFLs are not closed under complementation, i.c., it is possible that A is not a CFL for a CFL A, where A is the complement of A (if needed, review the definition of complement in Question 1 of Homework 2). Hint: We have shown in class that CFLs are not closed under intersection. Prove by contra- diction that if CFLs were closed under complementaion then CFLs would also be closed under intersection. You may also find DeMorgan's law useful, i.e., for two sets A and A2, it holds that A U A = A A (the complement of the union of two sets A and A is equal to the intersection of the complements of A and A). 9. (6 points) In class, we proved that the intersection of a CFL and a regular language is still a CFL. Using this property and the fact that the language {abcm |0 mn} in Question 7(b) is not context free, prove that the following language A is not context free. A = {w | w *, and in w, the number of a's is equal to the number of b's and is larger than or equal to the number of c's}, where = {a, b, c}. For example, both aabcb and cba are in A, but neither baac nor accb is in A.
Expert Answer:
Answer rating: 100% (QA)
Solutions Step 1 Lets address both questions step by step Question 8 Proving that CFLs are ... 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
-
Discuss the role of reward systems in organizational change. Specifically, identify where reward systems work and where they undermine the organizational change process. If you have no experience in...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Considering all of the below, recommend and justify a price for this deal. This is not easy to do. Put yourself in the shoes of the Robertson managers. Who wants it more? The buyer-Monmouth? The...
-
Calculate the de Broglie wavelength of an electron accelerated from rest through a potential difference of (a) 100 V, (b) 1.0 kV, (c) 100 kV.
-
Compare the capability indices Cpk, Cpm, and Cpmk, and discuss what they measure in the process. When would you use Cw?
-
A centrifugal pump having an impeller diameter of \(1 \mathrm{~m}\) is to be constructed so that it will supply a head rise of \(200 \mathrm{~m}\) at a flowrate of \(4.1 \mathrm{~m}^{3} /...
-
On January 1, 2011, Antonio Company issued $700,000 in bonds that mature in 10 years. The bonds have a stated interest rate of 8 percent and pay interest on June 30 and December 31 each year. When...
-
Consider a 3-year forward contract for an investment asset that provides no income. The spot price for the investment asset is $40, and the prevailing risk-free rate is 6%. What is the forward price?...
-
Holmes Corporation is a leading designer and manufacturer of material handling and processing equipment for heavy industry in the United States and abroad. Its sales have more than doubled, and its...
-
Case Study:-Wells Fargo Banks on Recovery Part 1 1. Provide a Brief Summary of the Case. 2. List the key players (organizations, individuals, countries, governments, etc.) in the case 3. List the...
-
1 . Forecast are made with reference to specific. a . time B . Estimates C . Opinion d . o Response
-
A 4-way set associative cache memory unit with a capacity of 16 KB is built using a block size of 8 words. Each word is 32 bits. The size of the physical address space is 4 GB. [Hint: Memory is Byte...
-
Macron Corporation manufactures two productsLaptops and Tablets. The monthly production and sales of Laptops is 1,800 units, while 8,000 units of Tablets are produced and sold. The company has...
-
The power required for dielectric heating of a slab of resin 150 cm2 in area and 2 cm thick is 200 W, at a frequency of 30 MHz. The material has a relative permittivity of 5 and power factor of 0.05....
-
write a reference letter for my employee, shes working for my building/ architecture company for 4 years and is an incredibly hardworking compassionate person. Shes truly an exceptional person, very...
-
Three numbers piq and r are pairwise coprime. Also pq = 629 and q r = 391. Find: The sum of pigir.
-
Pappa's Appliances uses the periodic inventory system. Details regarding the inventory of appliances at January 1, purchases invoices during the year, and the inventory count at December 31 are...
-
Leslie is a single taxpayer who is under age 65 and in good health. For 2012, she has a salary of $23,000 and itemized deductions of $1,000. Leslie is entitled to one exemption on her tax return. a....
-
For each of the following situations, indicate whether the taxpayer(s) is (are) required to file a tax return for 2012. Explain your answer. a. Helen is a single taxpayer with interest income in 2012...
-
Laura is a single taxpayer living in New Jersey with adjusted gross income for the 2012 tax year of $35,550. Laura's employer withheld $3,300 in state income tax from her salary. In April of 2012,...
-
The swinging spring is an example of a two degree-of-freedom system with a cubic nonlinearity. Indicate whether the statement presented is true or false. If true, state why. If false, rewrite the...
-
The period of free vibrations of a nonlinear system depends upon initial conditions. Indicate whether the statement presented is true or false. If true, state why. If false, rewrite the statement to...
-
A mass attached to a linear spring sliding on a surface with Coulomb damping is an example of a nonlinear system. Indicate whether the statement presented is true or false. If true, state why. If...
Study smarter with the SolutionInn App