|
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?
(a) Alan Mathison Turing
(b) N. P. Completeness
(c) E. Post
(d) The halting problem
(e) None of the above
Q2 Who did not invent the Turing machine?
(a) Alan Turing
(b) A. M. Turing
(c) Turing
(d) Alan Mathison Turing
(e) None of the above
Q3 Which of the following languages is not recursively enumerable?
(a) {a, b, c}
(b) the odd integers
(c) the prime numbers
(d) the halting Turing machines
(e) none of the above
Q4 Which of the following languages is not recursive?
(a) {a, b, c}
(b) the odd integers
(c) the prime numbers
(d) the halting Turing machines
(e) none of the above
Q5 The infinite set of all words over an alphabet S is denoted
(a) S*
(b) S0*
(c) |S|
(d) 2S
(e) none of the above
Q6 Given an alphabet S, a language over S is a
(a) superset of 2S
(b) subset of S*
(c) superset of S*
(d) proper subset of S0*
(e) none of the above
Q7 Given a language S, if it can be ordered then the set of all words over S is
(a) a subset of S
(b) a proper subset of S0
(c) countable
(d) uncountably infinite
(e) none of the above
Q8 If the set of all words over alphabet S is countable then
(a) any language over S must be finite
(b) at least one language over S is uncountable
(c) any language over S is countable
(d) each language over S0 is finite
(e) none of the above
Q9 Given a countable set A of subsets of a set X, where each aÎA Þ aÍX, it can be said that
(a) A ¹ 2X
(b) A = 2X
(c) (cardinality of A) > (cardinality of 2X )
(d) if X is not finite then A is not uncountable
(e) none of the above
Q10 Given a function f (a) = b (where aÎA, bÎB) we can say that if f is bijective then
(a) f is either surjective or injective but not both
(b) f is injective
(c) f (a) is recursively enumerable
(d) f (a) is total over all domains
(e) at least one bÎB does not have an aÎA mapping to it
Q11 Any two infinite sets A and B are equinumerous if
(a) a bijection exists between one of them and the natural numbers
(b) a bijection exists between one of them and a proper subset of the other
(c) both are finite
(d) a bijection exists between them
(e) both sets can be enumerated or ordered
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)?
(a) yes
(b) no
(c) yes, but only if A0, A1, A2, … have different cardinalities (are not equinumerous)
(d) only if a is at the diagonal of an enumeration of the set of sets
(e) none of the above
Q13 A function f : A®B is a binary relation between A and B where
(a) only one tuple <a, b> exists for each bÎB
(b) f may be written f (b) = a
(c) every bÎB has a corresponding aÎA
(d) every aÎA has a bÎB, but more than one aÎA may map to the same bÎB
(e) none of the above
Q14 If every mathematical statement in a formal system can be either proved or disproved (i.e. proved false) then the system is
(a) consistent
(b) complete
(c) provably decidable
(d) complete or consistent but not both
(e) undefined because no sufficiently formal system can have such a property
Q15 Which of the following is necessary to describe the global state of a deterministic Turing machine?
(a) the current line `executed' in the table of behaviour
(b) the current symbol being scanned
(c) the infinite tape or tapes
(d) the position of the tape head
(e) all of the above