NUIMCrest CS403 - Computational Complexity Theory
Class test 2
Tuesday 12 December 2000, 14:00, SLT

T Naughton, CS NUIM, Back to CS403 home


Remove everything from your desk except pens/pencils. Paper will be provided. Answer all questions. You have 50 minutes in total.

Use the MCQ answer sheet for Section B. Write both your name and student id. number on the MCQ sheet (remember to precede your number with a zero). Each MCQ question has only one fully correct option. Negative marking will be enforced: +1 for a correct answer, -0.25 for an incorrect answer, 0 for a non attempt. This means that randomly guessing answers will average a mark of zero.

You may keep this question sheet when finished. Solutions will be provided within one week.


Section A – Turing machine programming

Q1 Write a one-tape Turing machine to reverse a binary string. Initially, the TM head will be at the beginning of the input. At halt, the TM head must be at the beginning of the output. For example, input "110" would be transformed into "011". Explain the purpose of each TM state in your comments.

Q2 Write a two-tape version of Q1.


Section B – Computability and complexity

Q1 What did Gödel prove?

Q2 For what is Church known? Q3 Which of the following models of computation is less powerful than the others? Q4 The set of accepting Turing machines does not coincide with which of the following sets? Q5 The set of recognising Turing machines does not coincide with proper subsets of which of the following sets? Q6 The computational complexity class of languages PTIME, often referred to as P, ... Q7 Does the class LOGTIME exist? Q8 Given the diagram below, depicting sets XÍYÍZ and elements aÎX, bÎY, cÎZ, which of the following statements is false?