Theory of Computation Problem Set 9 for ECS 120 at UC Davis - Prof. Phillip W. Rogaway, Assignments of Computer Science

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

Pre 2010

Uploaded on 07/30/2009

koofers-user-web
koofers-user-web 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ECS 120: Theory of Computation Handout 9
UC Davis Phillip Rogaway February 28, 2002
Problem Set 9 Due Thusday, March 7, 2002
Problem 1 Prove that Lis decidable iff Lis listable in lexicographic order. (A language is
listable in lexicographic order if some program outputs x1]x2]x3]· · ·,L={x1, x2, x3, . . .},
and x1< x2< x3<· · · where < denotes the usual lexicographic ordering on strings.)
Problem 2 (Counts as 20 points, same as 2 ordinary problems.)
Part A. Let L={hMi:Mis a TM that accepts some string of prime length}. Prove that L
is not decidable.
Part B. Let L={hGi:Gis a CFG and Gaccepts an odd-length string}. Prove that Lis not
decidable.
Part C. Let L={hMi:Mis a TM and L(M) = L(M)}. Prove that Lis not r.e.
Part D. Let L={hMi:Mis a TM and L(M) = L(M)}. Prove that Lis not r.e.
Part E. Let L={hMi:Mis a TM and L(M) = L(M)}. Prove that Lis not co-r.e.
Part F. Let L={hG1, G2i:G1and G2are CFGs and L(G1) = L(G2)}. Prove that Lis not
decidable. You may use the fact that A={hGi:Gis a CFG and L(G) = Σ}is undecidable.

Partial preview of the text

Download Theory of Computation Problem Set 9 for ECS 120 at UC Davis - Prof. Phillip W. Rogaway and more Assignments Computer Science in PDF only on Docsity!

ECS 120: Theory of Computation Handout 9 UC Davis — Phillip Rogaway February 28, 2002

Problem Set 9 — Due Thusday, March 7, 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.