A-Level Maths
Courses
Papers
Questions
Search
Courses
Decision Mathematics
Sorting Algorithms
Q2
AQA D1 2016 June — Question 2
4 marks
Exam Board
AQA
Module
D1 (Decision Mathematics 1)
Year
2016
Session
June
Marks
4
Topic
Sorting Algorithms
2
Use a shuttle sort to rearrange into alphabetical order the following list of names:
Rob, Eve, Meg, lan, Xavi
Show the list at the end of each pass.
A list of ten numbers is sorted into ascending order, using a shuttle sort.
How many passes are needed?
Give the maximum number of comparisons needed in the sixth pass.
Given that the list is initially in descending order, find the total number of swaps needed.
[0pt] [4 marks]
This paper
(8 questions)
View full paper
Q1
3
Q2
4
Q3
Q4
Q5
Q6
Q7
Q8