9618/32/M/J/23 question 10: worked solution (May/June 2023, paper 32)
Show as plain textHide plain text
Cambridge A2 Level Computer Science 9618 · 18.1 Artificial Intelligence (AI) Worked solution from the Artificial Intelligence (AI) Paper 3 Advanced Theory booklet, Part 1 of 1. Q6 9618/32/M/J/23 original Q10 Structured · 6 marks Worked solution (a) Write any one of these: Supervised learning (or unsupervised, reinforcement or deep learning) [1] (b) Work out f = g + h and always expand the node with the lowest f. g is the time from Begin, h is the heuristic. Start node Destination node Cost from start node (g) Heuristic (h) Total (f = g + h) Begin Begin 0 12 12 Begin A 5 8 13 Begin B 6 7 13 Begin C 5 7 12 Begin D 4 11 15 C G 5 + 2 = 7 5 12 G F 5 + 2 + 4 = 11 1 12 G End 5 + 2 + 7 = 14 0 14 F End 5 + 2 + 4 + 1 = 12 0 12 Rows for B, C and D from Begin: any two of these correct [2] Rows for G (from C), F and End (from G), End (from F): any two of these correct [2] Write the final path: Begin → C → G → F → End [1] KEY IDEA In A*, add the cost so far to the heuristic and always carry on from the lowest total until the End node is reached. TOTAL 6 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by qiphyedu. Tap the picture to open it on YouTube.