SE307 - Computation and Complexity Theory
Lab Test 1 (repeat)
Monday 19 November 2001, 16:00, Lab 3
T Naughton, CS NUIM,
Back to SE307 home
Remove everything from your desk except pens/pencils. Paper will be provided. Turn off all computer monitors. Answer all questions. You have 60 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.
Section A – Turing machine programming (50% of total test marks)
Q1 Write a Turing machine to increment an arbitrary natural number written as 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 "11" would be transformed into "100", and input "0101" would be transformed into "0110".
Q2 You are given a 2-tape Turing machine T = (Q, S, I, q0, F) = ({00,01,02,03,04}, {1,-}, I, 00, {04}) that operates on unary strings. The head of each tape will be positioned at the beginning of its input string. I is
q s q' s' m
00 (1,1) 00 (1,1) (R,S)
00 (1,-) 00 (1,-) (R,S)
00 (-,1) 01 (1,-) (R,R)
00 (-,-) 02 (-,-) (L,S)
01 (1,1) 03 (-,-) (R,R)
01 (-,1) 01 (1,-) (R,R)
01 (-,-) 02 (-,-) (L,S)
02 (1,-) 02 (1,-) (L,S)
02 (-,1) 01 (1,-) (R,R)
02 (-,-) 04 (-,-) (R,S)
(a) What does T do? Give as concise an explanation as you can.
(b) Convert T into a functionally-identical Turing machine that requires as few states as possible.
Section B – Computability (50% of total test marks)
Q1 Who invented the Turing machine?
Q2 Who did not invent the Turing machine?
Q3 "In order to ensure that a machine would be able to answer every question from some formal system (say, arithmetic) we would have to permit it to give incorrect answers some of the time." This statement is
Q4 "All machines have equal power (in terms of computability)." This statement is
Q5 Which of the following is necessary to describe the global state of a 1-tape deterministic Turing machine?
Q6 Which of the following is not necessary to describe the global state of a 1-tape deterministic Turing machine?
Q7 Any two infinite sets A and B are equinumerous if
Q8 The `strongest' of the following statements we can make about the summation 1 + 2 + 3 + ... + n is
Q9 Given that a k-tape deterministic Turing machine T with k³1 can be defined by the tuple á Q, S, I, q0, Fñ, which of the following is false?
Q10 Given that a k-tape deterministic Turing machine T with k³1 can be defined by the tuple á Q, S, I, q0, Fñ, which of the following is always true?
Q11 Which of the following languages is not recursively enumerable?
Q12 Which of the following languages is not recursive?
Q13 The set of accepting Turing machines does not coincide with which of the following sets?
Q14 Given an alphabet S, a language over S is a
Q15 If the power set of a set X, written as 2X, is countable then X must