All flashcards topics

Algorithms and flowchartsIB MYP Maths Extended: Flashcards

What these 13 flashcards ask

  • What is an algorithm?
  • What are the three main parts of an algorithm?
  • Which flowchart shape shows a decision?
  • Which flowchart shape shows start and stop?
  • Which flowchart shape shows an input or output?
  • Which flowchart shape shows a process (calculation)?
  • What is a trace table?
  • What is a loop?
  • Trace: n=3, total=0; add n, reduce n by 1, repeat while n0. Output?
  • What is a term-to-term rule?
  • First four terms: u1=3, rule \times2+1?
  • Algorithm for ax+b=c?
  • Why does the ax+b=c algorithm fail if a=0?

Exam questions on Algorithms and flowcharts

  1. An algorithm is written in steps. Step 1: Set n=5n=5 and total=0total=0. Step 2: Add nn to totaltotal. Step 3: Reduce nn by 11. Step 4: If n>0n>0, go back to Step 2; otherwise output totaltotal and stop.
    Step 1 is changed to set n=8n=8. Find the new output.2 marks
  2. A flowchart takes a number xx as its input. Process: double xx and subtract 33 to get yy. Decision: if y>10y>10, output the word "Large"; otherwise output yy.
    Find the smallest whole number input that gives the output 'Large'.2 marks
  3. A sequence is generated by an algorithm. Step 1: Set the first term u1=3u_1=3. Step 2: To get the next term, multiply the previous term by 22 and then add 11. Step 3: Repeat Step 2 until the terms needed have been found.
    Use the algorithm to find the first five terms of the sequence.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).