Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2.
Pick every row where Z = 1 (rows 0000, 0001, 0010, 0011, 0110 and 0111) and write one product for each. Where an input is 0, write NOT in front of it.
Z = NOT A . NOT B . NOT C . NOT D + NOT A . NOT B . NOT C . D [1]
+ NOT A . NOT B . C . NOT D + NOT A . NOT B . C . D [1]
+ NOT A . B . C . NOT D + NOT A . B . C . D [1]
Put a 1 in each cell whose row has Z = 1. Columns are AB, rows are CD (Gray code order).
| CD \ AB | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 1 | 0 | 0 | 0 |
| 01 | 1 | 0 | 0 | 0 |
| 11 | 1 | 1 | 0 | 0 |
| 10 | 1 | 1 | 0 | 0 |
All 16 cells correct (one error scores 1 mark) [2]
Loop the biggest groups of 1s. Groups must be 1, 2, 4, 8 or 16 cells in a rectangle.
Loop 1: the whole AB = 00 column (four 1s) [1]
Loop 2: the 2 × 2 block where AB = 00 or 01 and CD = 11 or 10 (four 1s) [1]
Loop 1: A = 0 and B = 0 stay the same, C and D change, so the term is NOT A . NOT B [1]
Loop 2: A = 0 and C = 1 stay the same, B and D change, so the term is NOT A . C [1]
Write: Z = NOT A . NOT B + NOT A . C
Take NOT A out as a common factor.
Write: Z = NOT A . (NOT B + C) [1]
▶ Whole paper
Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.