
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This document from uc davis contains problem set 9 for the theory of computation course (ecs 120) by phillip rogaway. The problem set includes various tasks related to decidability and recognizability of languages, such as proving that a language is decidable iff it is listable in lexicographic order, and proving that certain languages are not decidable, not recursively enumerable, or not co-recursively enumerable. The tasks involve proving theorems using turing machines, finite automata, and context-free grammars.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

ECS 120: Theory of Computation Handout 9 UC Davis — Phillip Rogaway February 28, 2002
Problem 1 Prove that L is decidable iff L is listable in lexicographic order. (A language is listable in lexicographic order if some program outputs x 1 ]x 2 ]x 3 ] · · ·, L = {x 1 , x 2 , x 3 ,.. .}, and x 1 < x 2 < x 3 < · · · where “<” denotes the usual lexicographic ordering on strings.)
Problem 2 (Counts as 20 points, same as 2 ordinary problems.)
Part A. Let L = {〈M 〉 : M is a TM that accepts some string of prime length}. Prove that L is not decidable.
Part B. Let L = {〈G〉 : G is a CFG and G accepts an odd-length string}. Prove that L is not decidable.
Part C. Let L = {〈M 〉 : M is a TM and L(M ) = L(M )∗}. Prove that L is not r.e.
Part D. Let L = {〈M 〉 : M is a TM and L(M ) = L(M )∗}. Prove that L is not r.e.
Part E. Let L = {〈M 〉 : M is a TM and L(M ) = L(M )∗}. Prove that L is not co-r.e.
Part F. Let L = {〈G 1 , G 2 〉 : G 1 and G 2 are CFGs and L(G 1 ) = L(G 2 )}. Prove that L is not decidable. You may use the fact that A = {〈G〉 : G is a CFG and L(G) = Σ∗} is undecidable.