←

Theory of computation

From Paper 1 (on-screen programming, practice version)
14 marks
Figure 1 is the state transition table for a finite state machine (FSM). S0 is the start state and the only accepting state.
Current stateInput 0Input 1
S0 (start, accepting)S0S1
S1S1S0
For each input string, state whether it is accepted: (a) 1101 (b) 1001 (c) 111 (d) 0000. Describe in one sentence the language the FSM accepts.
From Paper 1 (on-screen programming, practice version)
23 marks
For the regular expression a(b|c)*d, state which of these strings match: ad, abcbd, abd, acdd.
From Paper 1 (on-screen programming, practice version)
34 marks
State the time complexity in Big-O notation of a linear search, a binary search and a bubble sort, and explain why binary search is more efficient for large data sets.
Score 0 / 11 · 0 of 3 marked

This paper is written by Plasmo in the style of the AQA A-Level Computer Science exam. It is not a past paper and is not produced or endorsed by the exam board.

Theory of computation Exam Questions: AQA A-Level Computer Science | Plasmo