

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Quiz 1
CS 172: Computability and Complexity, Fall 95
11am-12:30pm, 25 October
Notes: There are three questions on this quiz. Please answer each question in the space below it, using the back of the sheet to continue your answer if necessary. Please write clear, concise answers. If you are having problems with part of a question, leave it and try the next one.
i.The set of all 0-1 strings that contain either the substring 000 or the substring 111 (or both). ii.The language {0i 1 j 2 k^ : i = j or j = k}. iii.The set of all 0-1 strings of the form 0i 1 j, where i is odd and j is even.
(b) Give a context free grammar for each of the language in part (a).
a.If L is regular and L is a subset of L, then L is regular. b.If L 1 , L 2 , L 3 are regular, then the language U
∞ i=1 Li is also regular.
Note: Remember that a Turing machine for an r.e. language may reject by computing forever.
Consider first a RAM in which both the number and the size of the registers are limited. Can any language that is accepted by a standard RAM also be accepted by such a RAM? Justify your answer carefully: wooly reasoning will receive little credit.
a.
Now suppose we allow the RAM to have infinitely many registers, as in the standard model, and we limit only the size of the registers. Can any language that is accepted by a standard RAM also be accepted by such a RAM? Justify your answer carefully: woolly reasoning will receive little credit.
b.
Quiz 1
Quiz 1