All mind maps topics

Algorithms, flow charts and bin packingEdexcel International A Level Maths: Mind map

Algorithms
Flow charts
Trace tables

Algorithms

flow charts and bin packing

stepstracebins
Middle item
Bin packing
Exam tips

Exam questions on Algorithms, flow charts and bin packing

  1. An algorithm is described as follows. Step 1: Input a number NN. Step 2: Set SS equal to 0. Step 3: Add NN to SS. Step 4: Replace NN by N−3N-3. Step 5: If N>0N>0, go to Step 3. Step 6: Print SS.
    Find the value printed when the input is N=20N=20.2 marks
  2. Eight files of sizes 9, 7, 11, 6, 5, 13, 12 and 10 megabytes (MB) are to be stored on memory sticks. Each memory stick can hold at most 20 MB.
    Use the first-fit decreasing algorithm to pack the files, and write down the contents of each memory stick.2 marks
  3. An algorithm is described as follows. Step 1: Input two positive integers AA and BB, with A>BA>B. Step 2: Let RR be the remainder when AA is divided by BB. Step 3: If R=0R=0, print BB and stop. Step 4: Replace AA by BB and BB by RR, then go to Step 2.
    Apply the algorithm to the inputs A=252A=252 and B=105B=105, showing the values of AA, BB and RR each time Step 2 is performed.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).