Question 2
AQA Computer Science June 2019 Paper 1A level9 marks
On the specification
- 2.1
- 4.4 Theory of computation
- 2.2
- 4.4 Theory of computation
- 2.3
- 4.4 Theory of computation
- 2.4
- 4.4 Theory of computation
Question text
2 Figure 2 shows the transition function (represented as a state transition diagram) and part of the tape for a Turing machine designed to complete a task. The current position of the read/write head is indicated by the * symbol. Figure 2 ... 0 1* 1 0 0 0 0 ... The label 1|# on the transition from S0 to S1 means if the machine is in state S0 and a 1 is read from the tape then a # should be written to the tape and then the read/write head moved one cell to the right. 2.1 After four steps of the computation have been completed, the current state, the tape contents and the position of the read/write head are: Tape Current state ... 0 # 1 0* 1 0 0 ... S3 Complete the unshaded cells of Table 1 to show the result of tracing the computation of this Turing machine, from step five onwards. Show the contents of the tape, the current position of the read/write head and the current state as the input symbols are processed. Step four has been repeated at the start of the trace. Table 1 Tape Current state ... 0 # 1 0* 1 0 0 ... S3 Copy the contents of the unshaded cells in Table 1 into the table in your Electronic Answer Document. [5 marks] 2.2 What is the purpose of the Turing machine shown in Figure 2? [1 mark] 2.3 What is the purpose of the transition from S5 to S6 in the Turing machine in Figure 2? [1 mark] 2.4 Explain what a Universal Turing machine is. [2 marks]