Algorithm design and problem-solving
28 questions. Open a question to solve it and check the official answer.
Algorithms · 4 marks · official answer ready
(i) Describe how this algorithm works. (Do not attempt to write the pseudocode.) [4]
Algorithms · 3 marks · official answer ready
(ii) A binary search is made to locate Cherry. 1 Apple 2 Banana 3 Cherry 4 Kiwi 5 Lemon 6 Mango 7 Plum List, in order, the comparisons which are made. [3] 10
Algorithms · 4 marks · official answer ready
(i) Describe how this algorithm works. (Do not attempt to write the pseudocode.) [4]
Algorithms · 3 marks · official answer ready
(ii) A binary search is made to locate Cherry. 1 Apple 2 Banana 3 Cherry 4 Kiwi 5 Lemon 6 Mango 7 Plum List, in order, the comparisons which are made. [3] 10
Algorithms · 0 marks
(i) Algorithm A,
Algorithms · 2 marks
(ii) Algorithm B. [2]
Algorithms · 0 marks
(i) Algorithm A
Algorithms · 2 marks
(ii) Algorithm B so that each will output the even numbers from 2 to 10 inclusive. [2] 3
