9618/31/O/N/21 question 7: worked solution (October/November 2021, paper 31)
Show as plain textHide plain text
Cambridge A2 Level Computer Science 9618 · 15.2 Boolean Algebra and Logic Circuits Worked solution from the Hardware and Virtual Machines Paper 3 Advanced Theory booklet, Part 2 of 2. Q17 9618/31/O/N/21 original Q7 Structured · 10 marks Worked solution (a) Pick the rows where Z = 1 and write one product for each row. NOT is written before a letter. Rows with Z = 1 are ABCD = 1001, 1011, 1100, 1101, 1110 and 1111. Z = A . NOT B . NOT C . D + A . NOT B . C . D [1] + A . B . NOT C . NOT D + A . B . NOT C . D [1] + A . B . C . NOT D + A . B . C . D [1] One mark for each two correct products. (b)(i) Put each Z value in the cell for its AB column and CD row. Columns and rows go in Gray code order (00, 01, 11, 10). CD \ AB 00 01 11 10 00 0 0 1 0 01 0 0 1 1 11 0 0 1 1 10 0 0 1 0 Two columns correct (for example AB = 00 and 01) [1] The other two columns correct (AB = 11 and 10) [1] (b)(ii) Make the biggest groups of 1s (sizes 1, 2, 4, 8) that you can. Loop the whole AB = 11 column (four 1s) [1] Loop the four 1s in the block AB = 11 and 10 with CD = 01 and 11 [1] (b)(iii) The AB = 11 column: A and B stay the same, C and D change, so the term is A . B. The block: A stays 1 and D stays 1, so the term is A . D. Term A . B [1] Term A . D, joined with + and no other terms: Z = A . B + A . D [1] (b)(iv) Take out the common A: Z = A . (B + D) [1] KEY IDEA A K-map groups neighbouring 1s so a sum-of-products shrinks, and a common letter can then be factored out. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.