Question: (20 points) a) Prove that the language L is decidable where L = {(G)|G is a CFG which generates a string with length greater than

 (20 points) a) Prove that the language L is decidable where

(20 points) a) Prove that the language L is decidable where L = {(G)|G is a CFG which generates a string with length greater than 5}. b) What is wrong with the following proof? Why? T=On input string (G): 1. Check whether G represents a valid CFG. 2. Generate all strings of length greater than 5 in lexicographic order. If a string of length greater than 5 is generated, accept. Reject otherwise. " T is a decider, therefore, L is decidable

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!