Maths topics › A level Further Maths › D1 and algorithms
Follow an algorithm given as a flow chart, recording each step in a trace table
Try a question
Free worksheet
10 questions on this objective, ready to print.
Download the worksheet (PDF)Worked solution
The working
- Box 1 sets \(A = B = u_1 = 51\). Each time round, \(A\) becomes \(T\) if \(T\) is bigger (Boxes 4 and 5) and \(B\) becomes \(T\) if \(T\) is smaller (Boxes 6 and 7).
- (a) \(n = 2\): \(T = 52\), \(A = 52\), \(B = 51\); \(n = 3\): \(T = 38\), \(A = 52\), \(B = 38\).
- Then \(n = 4\): \(T = 35\), \(A = 52\), \(B = 35\); \(n = 5\): \(T = 49\), \(A = 52\), \(B = 35\).
- (b) When \(n = 5\), Box 8 answers No and Box 9 prints \(A - B = 52 - 35 = 17\): the range of the list.
- (c) For a list of 12 numbers only the stopping test changes: Box 8 becomes \(n \lt 12\).
- Answers: (a) 52, 51, 52, 38; (b) 17; (c) Box 8.
Answer: a) 52 b) 51 c) 52 d) 38 e) 17 f) 8
Mathster is maths homework, practice and assessment for schools, with animated worked solutions. Try Mathster free for 60 days →
Objectives from the AS and A level subject content for further mathematics (Department for Education). Contains public sector information licensed under the Open Government Licence v3.0.