BREAKING
Student finds x, x refuses to elaborate★Paper 1 still non-calculator, nation in shock★Local teen shows working, examiner weeps with joy★
  1. Home
  2. A Level
  3. Mathematics
  4. Edexcel
  5. Sorting algorithms

Edexcel A Level Maths

Topic questions Decision mathematics Sorting algorithms

Sorting algorithms

8 questions · 85 marks · about 1.5 hours

Sorting algorithms questions

Edexcel 9371 Sorting algorithms 8 questions

Decision Mathematics 1 June 2017, Question 3 13 marks

Also involves Bin packing

42 21 15 16 35 10 31 11 27 39

(a)

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

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

The list of numbers 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 3(b)
(c)

Use the first-fit decreasing bin packing algorithm on your ordered list to pack the numbers into bins of size 65

The nine distinct numbers below are to be sorted into descending order 23 14 17 x 21 18 8 20 11 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 17 x 21 18 14 20 11 8 After the second complete pass, the list is 23 17 21 18 x 20 14 11 8

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

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

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

Decision Mathematics 1 June 2016, Question 3 9 marks

Also involves Bin packing

59 45 18 55 47 11 63 17 15 42

(a)

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

The numbers in the list represent the lengths, in cm, of some pieces of copper wire. The copper wire is sold in one metre lengths.

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

Use the first-fit decreasing bin packing algorithm to determine how these pieces could be cut from one metre lengths. (You should ignore wastage due to cutting.)

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

Determine whether your solution to (b) is optimal. Give a reason for your answer.

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

Decision Mathematics 1 June 2015, Question 2 11 marks

Also involves Binary search

18 29 48 9 42 31 37 24 27 41 The numbers above are Alan’s batting scores for the first 10 cricket matches of the season.

(a)

Use a quick sort to sort this list of numbers into ascending order. You must make your pivots clear.

Alan’s batting scores for the final 10 cricket matches of the same season were 72 53 89 91 68 67 90 77 83 75

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

Carry out a bubble sort on this second list of numbers to produce a list of these scores in ascending order. You need only give the state of the list after each pass.

Alan’s combined batting scores for the entire season were 9 18 24 27 29 31 37 41 42 48 53 67 68 72 75 77 83 89 90 91

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

Use the binary search algorithm to locate 68 in the combined list of 20 scores. You must make your method clear.

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

Decision Mathematics 1 June 2013, Question 2 11 marks

Also involves Bin packing

0.6 1.5 1.6 0.2 0.4 0.5 0.7 0.1 0.9 0.3

(a)

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

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

The list of numbers is to be sorted into descending order. Use a quick sort to obtain the sorted list. You must make your pivots clear.

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

Apply the first-fit decreasing bin packing algorithm to your ordered list to pack the numbers into bins of size 2.

[3]
(d)

Determine whether your answer to (c) uses the minimum number of bins. You must justify your answer.

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

Decision Mathematics 1 June 2013 (R), Question 4 8 marks

Also involves Binary search

1. Sam (S) 2. Janelle (J) 3. Haoyu (H) 4. Alfie (A) 5. Cyrus (C) 6. Komal (K) 7. Polly (P) 8. David (D) 9. Tom (T) 10. Lydia (L) A binary search is to be performed on the names in the list above to locate the name Lydia.

(a)

Using an appropriate algorithm, rearrange the list so that a binary search can be performed, showing the state of the list after each complete iteration. State the name of the algorithm you have used.

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

Use the binary search algorithm to locate the name Lydia in the list you obtained in (a). You must make your method clear.

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

Decision Mathematics 1 June 2012, Question 1 12 marks

Also involves Bin packing

A carpet fitter needs the following lengths, in metres, of carpet. 20 33 19 24 31 22 27 18 25 He cuts them from rolls of length 50 m.

(a)

Calculate a lower bound for the number of rolls he needs. You must make your method clear.

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

Use the first-fit bin packing algorithm to determine how these lengths can be cut from rolls of length 50 m.

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

Carry out a bubble sort to produce a list of the lengths needed in descending order. You need only give the state of the list after each pass.

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

Apply the first-fit decreasing bin packing algorithm to show how these lengths may be cut from the rolls.

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

Decision Mathematics 1 June 2011, Question 1 9 marks

Also involves Binary search

1. Jenny 2. Merry 3. Charles 4. Ben 5. Toby 6. Hyo 7. Kim 8. Richard 9. Greg 10. Freya A binary search is to be performed on the names in the list above to locate the name Kim.

Reveal mark scheme Mark scheme for question 1
(a)

Explain why a binary search cannot be performed with the list in its present form.

[1]
(b)

Using an appropriate algorithm, alter the list so that a binary search can be performed, showing the state of the list after each complete iteration. State the name of the algorithm you have used.

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

Decision Mathematics 1 January 2011, Question 2 12 marks

23 29 11 34 10 14 35 17 The numbers represent the sizes, in megabytes (MB), of eight files. The files are to be stored on 50 MB discs.

Reveal mark scheme Mark scheme for question 2
(a)

Calculate a lower bound for the number of discs needed to store all eight files.

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

Use the first-fit bin packing algorithm to fit the files onto the discs.

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

Perform a bubble sort on the numbers in the list to sort them into descending order. You need only write down the final result of each pass.

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

Use the first-fit decreasing bin packing algorithm to fit the files onto the discs.

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

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 Maths memes. Peer-reviewed by nobody.

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

Learn the formula
Draw a vague triangle and hope
Me with 4 minutes left on Paper 3
Using a calculator
Using the formula sheet
Doing it in your head
Writing ‘by inspection’ and walking out
Maths enlightenment, ranked

Mum 💖

did you do your maths homework sweetie?? 🥰

yes I solved for x

proud of you!!!

📱 Screen time this week · TikTok6h 7m

x was never found

Maths starter pack

Protractor you've never usedCalculator older than you“Show your working” traumaThis website
Collect all four