

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
A final exam for the course Introduction to the Theory of Computation. The exam consists of five questions that cover topics such as regular expressions, DFAs, context-free languages, and the Turing-Church Thesis. Each question requires students to provide detailed answers and motivation. The exam is closed-book and has a duration of 3h30. The exam was taken on January 15, 2016.
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Closed-book. Duration: 3h30. Please answer each question on a separate sheet with your name and section. Motivate all your answers and give sufficient details.
b) Is the set of all regular expressions over a finite alphabet Σ denu- merable? What happens when Σ is infinite (but denumerable)?
L 1 tw | w P ta, bu, Napwq 2 mod 4u
where Nσpwq is the number of letters σ contained in the word w. b) Give a DFA that accepts the language
L 2 tw | w P ta, bu, aa R F actpwqu
c) Give a regular grammar that generates L 1 Y L 2.
b) Is the language of all well-parenthesized expressions regular? Example: ppqpqq.
b) Is the language L taibj^ ckdl^ | i l ¥ j ku context-free?
b) Are two tape Turing Machines more expressive than the standard definition of a Turing Machine? Explain.
b) Show that IntegerSqrtpnq t
nu is primitive recursive.
c) Is IntegerSqrt μ-recursive? Why are μ-recursive functions of in- terest in computability theory?
b) Why are the languages accepted by a Turing Machine also called “recursively enumerable”? Prove your statement.
b) Define the complexity classes P , N P and N P C. What inclusion relations between these classes are known, plausible? Give an example of a problem belonging to each of these classes.