BREAKING
Imaginary number feels seen, refuses to be real★Matrices multiplied in wrong order, student loses faith★Proof by induction ends, nobody knows why it worked★
  1. Home
  2. A Level
  3. Further Mathematics
  4. Edexcel
  5. Sorting algorithms

Edexcel A Level Further Maths

Topic questions Decision mathematics Sorting algorithms

Sorting algorithms

5 questions · 44 marks · about 55 minutes

Sorting algorithms questions

Edexcel 9FM0 Sorting algorithms 5 questions

Paper 3D: Decision Mathematics 1 June 2024, Question 1 7 marks

17 8 16 12 24 19 23 11 20 13 4

The eleven numbers listed above are to be packed into bins of size n where n is a positive integer. When the first-fit bin packing algorithm is applied to the eleven numbers, the bins are packed as shown below.

Bin 1:17812
Bin 2:1624
Bin 3:19114
Bin 4:2313
Bin 5:20
(a)

Explain why this packing means that the value of n must be 40

[1]
Reveal mark scheme Mark scheme for question 1(a)
(b)

The original list of eleven numbers is to be sorted into descending order.

Use a quick sort to obtain the fully sorted list. You must make your pivots clear.

[4]
Reveal mark scheme Mark scheme for question 1(b)
(c)

Apply the first-fit decreasing bin packing algorithm to the fully sorted list to pack the numbers into bins of size 40

[2]
Reveal mark scheme Mark scheme for question 1(c)

Paper 3D: Decision Mathematics 1 June 2022, Question 6 12 marks

The following algorithm determines the number of comparisons made when Prim’s algorithm is applied to Kn

Step 1 Start

Step 2 Input the value of n

Step 3Let a = 1
Step 4Let b = n – 2
Step 5Let c = b
Step 6Let a = a + 1
Step 7Let b = b – 1

Step 8 Let c = c + (amaths symbolb) + (a – 1)

Step 9 If b maths symbol 0 go to Step 6

Step 10 Output c

Step 11 Stop

(a)

For K5, complete the table in the answer book to show the results obtained at each step of the algorithm.

[3]
Reveal mark scheme Mark scheme for question 6(a)
(b)(i)
Figure for question 6

The weights of the ten arcs in Figure 4 are

17 21 24 14 23 13 15 19 28 20

Starting at the left‑hand end of the above list, sort the list into ascending order using bubble sort. You need only write down the state of the list at the end of each pass.

Reveal mark scheme Mark scheme for question 6(b)(i)
(b)(ii)

Find the total number of comparisons performed during the sort.

[5]
Reveal mark scheme Mark scheme for question 6(b)(ii)
(c)

Find the maximum total number of comparisons required to sort the weights of the 10 arcs of K5 into ascending order using bubble sort.

[1]
Reveal mark scheme Mark scheme for question 6(c)
(d)

It is given that the maximum total number of comparisons required to sort the weights of the arcs of Kn into ascending order using bubble sort is

λn (n – 1)(n + 1)(n – 2)

where λ is a constant.

Determine the maximum total number of comparisons required to sort the weights of the arcs of K50 into ascending order using bubble sort. You must make your method and working clear.

[3]
Reveal mark scheme Mark scheme for question 6(d)

Paper 3D: Decision Mathematics 1 November 2021, Question 5 10 marks

30 12 5 2 23 18 36 10 15 24

(a)

The list of ten numbers above is to be sorted into descending order. Use a quick sort to obtain the sorted list. You should show the result of each pass and identify your pivots clearly.

[4]
Reveal mark scheme Mark scheme for question 5(a)
(b)

The ten numbers are to be packed into bins of size n, where n is a positive integer.

When the first-fit bin packing algorithm is applied to the original list of ten numbers, the following allocation is obtained.

Bin 1: 30 12 2 Bin 2: 5 23 10 Bin 3: 18 15 Bin 4: 36 Bin 5: 24

Explain why the value of the integer n must be either 44 or 45

[3]
Reveal mark scheme Mark scheme for question 5(b)
(c)

Use the first-fit decreasing bin packing algorithm to determine how the numbers can be packed into bins of size 45

[3]
Reveal mark scheme Mark scheme for question 5(c)

Paper 3D: Decision Mathematics 1 October 2020, Question 5 7 marks

The nine distinct numbers in the following list are to be packed into bins of size 50

23 17 19 x 24 8 18 10 21

When the first-fit bin packing algorithm is applied to the numbers in the list it results in the following allocation.

Bin 1: 23 17 8

Bin 2: 19 x10

Bin 3: 24 18

Bin 4: 21

(a)

Explain why 13 maths symbol x maths symbol 21

[3]
Reveal mark scheme Mark scheme for question 5(a)
(b)

The same list of numbers is to be sorted into descending order. A bubble sort, starting at the left-hand end of the list, is to be used to obtain the sorted list. After the first complete pass the list is

23 19 17 24 x 18 10 21 8

Using this information, write down the smallest interval that must contain x, giving your answer as an inequality.

[2]
Reveal mark scheme Mark scheme for question 5(b)
(c)

When the first-fit decreasing bin packing algorithm is applied to the nine distinct numbers it results in the following allocation.

Bin 1: 24 23

Bin 2: 21 19 10

Bin 3: 18 17 x

Bin 4: 8

Given that only one of the bins is full and that x is an integer,

calculate the value of x. You must give reasons for your answer.

[2]
Reveal mark scheme Mark scheme for question 5(c)

Paper 3D: Decision Mathematics 1 June 2019, Question 1 8 marks

2.1 1.7 3.0 1.9 3.2 1.2 3.3 1.4 1.5 0.2

(a)

Use the first-fit bin packing algorithm to determine how the numbers listed above can be packed into bins of size 5

[2]
Reveal mark scheme Mark scheme for question 1(a)
(b)

The list of numbers is now to be sorted into descending order.

Perform a quick sort on the original list to obtain the sorted list. You should show the result of each pass and identify your pivots clearly.

[4]
Reveal mark scheme Mark scheme for question 1(b)
(c)

For a list of n numbers, the quick sort algorithm has, on average, order n log n.

Given that it takes 2.32 seconds to run the algorithm when n = 450

calculate approximately how long it will take, to the nearest tenth of a second, to run the algorithm when n = 11 250. You should make your method and working clear.

[2]
Reveal mark scheme Mark scheme for question 1(c)

Report a problem with a question on this page
What is wrong?

Goes to whoever maintains the question split. No account needed and nothing is published on this page.

Memes

Certified Further Maths memes. Peer-reviewed by nobody.

Laugh now. Cry in the exam hall later. Then come back and do a past paper.

Prove it by induction
Write ‘clearly’ and move on
Me on the final ‘show that’
Using the formula booklet
Proving it by induction
Writing ‘by symmetry’ to skip half the work
Writing ‘trivially’ and daring the examiner
Further enlightenment, ranked

Mum 💖

how's further maths going?? 🥰

my answers are all complex rn

keep it simple love 💖

📱 Screen time this week · Spotify4h 59m

The answer was i. Nobody knows why

Further Maths starter pack

Calculator that does matricesProof that’s 3 pages longArgand diagram doodlesThis website
Collect all four. Prove it.