Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . 1 Recall the CFG G 4 that we gave in Example 2 . 4 . For convenience, let s rename its variables with

2.1 Recall the CFG G4 that we gave in Example 2.4. For convenience, lets rename its
variables with single letters as follows.
E ->E+T |T
T ->T xF|F
F ->(E)|a
Give parse trees and derivations for each string.
a. a
b. a+a
2.2
c. a+a+a
d.((a))
a. Use thelanguages A ={ambncn|m,n >=0} and B ={anbncm|m,n >=0}
together with Example 2.36 to show that the class of context-free languages
is not closed under intersection.
b. Use part (a) and DeMorgans law (Theorem 0.20) to show that the class of
context-free languages is not closed under complementation.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the ratios under the category Liquidity Ratios?

Answered: 1 week ago

Question

=+38-1 Describe the physiological factors that produce hunger.

Answered: 1 week ago

Question

system software includes all the following except:

Answered: 1 week ago

Question

2. How should this be dealt with by the organisation?

Answered: 1 week ago

Question

explain what is meant by the term fair dismissal

Answered: 1 week ago