Question 6
AQA Computer Science November 2021 Paper 1 (7517/1)A level5 marks
On the specification
- 6.1
- 3.4 Theory of computation
- 6.2
- 4.4 Theory of computation
Question text
6 The state transition diagram for a finite state machine (FSM) is shown in Figure 4. Figure 4 6.1 An FSM can also be represented as a state transition table. Complete the state transition table, Table 3, so that it represents the parts of the state transition diagram shown in Figure 4 that involve state S2. Table 3 Current state Input New state Copy the contents of the unshaded cells in Table 3 into the table in your Electronic Answer Document. [2 marks] 6.2 Regular expressions can be used to recognise the same strings as FSMs without output. Write a regular expression that will recognise the same set of strings that are accepted by the FSM shown in Figure 4. [3 marks] You are advised to spend no more than 20 minutes on this section. Enter your answers to Section B in your Electronic Answer Document. You must save this document at regular intervals. The question in this section asks you to write program code starting from a new program/project/file. You are advised to save your program at regular intervals.