NUIMCrest CS403 - Computational Complexity Theory
Class test 1 - Turing machines and computability
Tuesday 28 November 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 the MCQ sheet. 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 (40 marks)

Q1 Write a Turing machine to increment a unary number by three. 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 "111" would be transformed into "111111". Comment every line in your table of behaviour.


Section B – Computability (60 marks)

Q1 Who invented the Turing machine?

Q2 Who did not invent the Turing machine?

Q3 Which of the following languages is not recursively enumerable? Q4 Which of the following languages is not recursive? Q5 The infinite set of all words over an alphabet S is denoted Q6 Given an alphabet S, a language over S is a Q7 Given a language S, if it can be ordered then the set of all words over S is Q8 If the set of all words over alphabet S is countable then Q9 Given a countable set A of subsets of a set X, where each aÎA Þ aÍX, it can be said that Q10 Given a function f (a) = b (where aÎA, bÎB) we can say that if f is bijective then Q11 Any two infinite sets A and B are equinumerous if Q12 Given a countably infinite set of countably infinite sets A0, A1, A2, …. Could we decide which Ai contains an element a (assume a belongs to one Ai)? Q13 A function f : A®B is a binary relation between A and B where Q14 If every mathematical statement in a formal system can be either proved or disproved (i.e. proved false) then the system is Q15 Which of the following is necessary to describe the global state of a deterministic Turing machine?