Algorithm design and problem-solving
4 questions. Open a question to solve it and check the official answer.
Algorithms · 4 marks · official answer ready
(iii) A binary search is carried out on the data in the Surname array shown. For Examiner's Surname Use 1 Ban 2 Chae 3 Dang 4 Hwang 5 Jeong 6 Jin 7 Jo 8 Ju 9 Ma 10 So 11 Song Comp…
Algorithms · 20 marks · official answer ready
(b) The data input for HandInDate also needs validating. It will be entered as DDMMYYYY. • DD must be less than 32 and greater than 0 • MM must be less than 13 and greater than 0 …
Algorithms · 20 marks · official answer ready
(b) The data input for HandInDate also needs validating. It will be entered as DDMMYYYY. • DD must be less than 32 and greater than 0 • MM must be less than 13 and greater than 0 …
Algorithms · 8 marks · official answer ready
(ii) The diagram shows a trace of the execution of this algorithm for the given linked list data. HeadPointer: 3 MyList Data Pointer 1 BEAN 2 2 COURGETTE 4 3 APPLE 1 4 PEPPER 0 ..…
