Question: ( 2 + 2 + 2 points ) L 1 = { ambmcn | m ^ 3 1 , n ^ 3 2 } L

(2+2+2 points) L1={ambmcn | m ^31, n ^32} L2={w | w is any string in {a, b, c}* except abc}(a) Design a context-free grammar G for language L1. G: (b) Design a context-free grammar H for the star of language L1. H: (c) Construct a deterministic Turing machine F that reduces the language L1 to L2 in polynomial time. Justify your answer with detailed explanation. Answer: [Hint: Reuse TM S that decides ACFG using CYK algorithm]

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 Programming Questions!