AQA D1 2015 June — Question 8

Exam BoardAQA
ModuleD1 (Decision Mathematics 1)
Year2015
SessionJune
TopicSorting Algorithms

8 A student is tracing the following algorithm.
\includegraphics[max width=\textwidth, alt={}, center]{f5890e58-38c3-413c-8762-6f80ce6dcec7-18_1431_955_372_539}
  1. Trace the algorithm illustrated in the flowchart for the case where the input value of \(N\) is 5 .
  2. Explain the role of \(N\) in the algorithm.