Edexcel FD1 Specimen — Question 1

Exam BoardEdexcel
ModuleFD1 (Further Decision 1)
SessionSpecimen
TopicSorting Algorithms

  1. A list of \(n\) numbers needs to be sorted into descending order starting at the left-hand end of the list.
    1. Describe how to carry out the first pass of a bubble sort on the numbers in the list.
    Bubble sort is a quadratic order algorithm.
    A computer takes approximately 0.021 seconds to apply a bubble sort to a list of 2000 numbers.
  2. Estimate the time it would take the computer to apply a bubble sort to a list of 50000 numbers. Make your method clear.