Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Definitions Given a language L , we define the following two-player pumping games. In both games, the winner is the last player to make a

Definitions Given a language L , we define the following two-player pumping games. In both games, the winner is the last player to make a legal move. So if they finish the game, N wins.

Regular Pumping Game for L: 1. R chooses an integer p 0.

2. N chooses a string s L such that |s| p.

3. R chooses strings x, y, z such that s = xyz, |xy| p, and |y| > 0.

4. N chooses an integer i 0 such that xyiz L.

Pumping Claim 1: If L is regular, then R has a winning strategy. (Chapter 1 pumping lemma.)

Context-Free Pumping Game for L: 1. C chooses an integer p 0.

2. N chooses a string s L such that |s| p.

3. C chooses strings u, v, x, y, z such that s = uvxyz, |vxy| p, and |vy| > 0.

4. N chooses an integer i 0 such that uvixyiz L. Pumping Claim 2: If L is context-free, then C has a winning strategy. (Chapter 2 pumping lemma.) Roughly speaking: N tries to pick a a unpumpable string s, while R (or C) tries to find a pumpable substring (or pair of substrings) in s. We often use the above pumping claims in the contrapositive direction: If N has a winning strategy for the regular game, then L is not regular.

If N has a winning strategy for the context-free game, then L is not context-free.

question:

Convert the following grammar to Chomsky Normal Form (CNF). Show at least the following: (1) the grammar after you have fixed the start symbol and eliminated -rules, (2) the grammar after you have also eliminated unit rules, and (3) the final CNF grammar. S aSA | AB | aB

A abb |

B bbA | AA

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions