Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer Science 3719 Assignment 8 Winter 2018. Date due: March 15 (in class) I. Consider the following languages over A = {a,b,c): (a) L =

image text in transcribed
Computer Science 3719 Assignment 8 Winter 2018. Date due: March 15 (in class) I. Consider the following languages over A = {a,b,c): (a) L = {s| num(a, z) = num(b, z) + num(c, z)), (b) L=(sl num(a, z)=max(num(b, z), num(c,z))), where num(a, z) denotes the number of occurrences of a in the string r. In each case, if the language is context-free, show a pushdown automaton which recognizes it, if the language is not context-free, show why it is so 2. The reflection of a language L over an alphabet A is defined as: Show that the class of context-free languages is not closed under reflection, i.e., find a context- free language such that its reflection is non-contex-free. 3. The following language L over A = {a, b): is not context-free. Find an unrestricted (Chomsky type "O") grammar generating it. Hint: First, a string amgn#Abang can be generated (# is a special symbol erased at the end of generation). Then symbols b can be copied one after another to the right end of the string moving the symbol # to the left for each copied symbol b until # reaches symbols a (and i erased)

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

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

Students also viewed these Databases questions