9618/31/O/N/21 question 9: worked solution (October/November 2021, paper 31)
Show as plain textHide plain text
Cambridge A2 Level Computer Science 9618 · 19.1 Algorithms Worked solution from the Computational thinking and Problem-solving Paper 3 Advanced Theory booklet, Part 1 of 2. Q2 9618/31/O/N/21 original Q9 Structured · 10 marks Worked solution (a)(i) Write one reason: More hidden layers let the network solve more complex problems and learn by itself ( deep learning ), which gives a more accurate result [1] (a)(ii) Explain the steps of learning. Write any four of these points: An artificial neural network copies the way the human brain works [1] Each connection between nodes has a weight (value) [1] Data goes in at the input layer and is passed on to the hidden layers, where features are picked out and outputs are worked out [1] This is repeated many times ( training ) to reach the best outputs, so reinforcement learning happens [1] Other points that also score: the output layer gives the result; Back propagation of errors corrects mistakes; decisions can be made without being specially programmed. (b) A* picks the node with the lowest total f = g + h. g is the cost from Home, h is the given heuristic. Node Cost from Home (g) Heuristic (h) Total (f = g + h) Home 0 14 14 A 1 10 11 B 5 7 12 C 4 9 13 B 1 + 3 = 4 7 11 E 1 + 6 = 7 3 10 F 7 + 1 = 8 3 11 School 7 + 5 = 12 0 12 School 8 + 3 = 11 0 11 Any four of these five calculation points score: Row for B from Home correct [1] Row for C from Home correct [1] Rows for B and E from A correct [1] Rows for F and School from E correct [1] Final path: Home → A → E → F → School [1] Note (no extra mark): the route Home → A → B → D → School costs only 1 + 3 + 2 + 2 = 8, but A* never expands D. Its heuristic (6) is more than the real distance from D to School (2), so School (f = 11) is reached first. With the heuristics given, A* returns Home → A → E → F → School, and this is the answer that scores the marks. Other points that also score: row for School from F correct. KEY IDEA More hidden layers learn harder patterns, and A* always expands the node with the smallest g + h. 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.