levo

Algorithms

Algorithms, decomposition and abstraction

  • 3 things to know
  • Paper 1

Overview

What an algorithm is and how it differs from a program, why each step must be unambiguous, decomposition and abstraction with worked examples, and the systematic approach to solving a problem.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What does a systematic approach to problem solving involve?

Key term

What is an algorithm?

Key term

How is an algorithm different from a computer program?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is an algorithm?

    Model answer

    An algorithm is a precise sequence of instructions for carrying out a task. Each step is clear and the steps run in a fixed order.

  2. 2

    How is an algorithm different from a computer program?

    Model answer

    A program is an algorithm turned into code in one particular language. The algorithm is the underlying method and exists independently of any language.

  3. 3

    Why can the same algorithm be coded in Python, C# or VB.NET?

    Model answer

    An algorithm describes the logic of a solution rather than the syntax of a language. Any language able to carry out the steps can implement it.

  4. 4

    Is a cooking recipe an algorithm?

    Model answer

    A recipe is an algorithm because it is a sequence of steps that completes a task. A recipe is not a program, because a person carries it out rather than a computer.

  5. 5

    Why must each step of an algorithm be unambiguous?

    Model answer

    A step with only one meaning gives the same result whoever follows it. A computer cannot guess what a vague instruction was meant to say.

  6. 6

    What is decomposition?

    Model answer

    Decomposition is breaking a problem down into smaller sub-problems. Each sub-problem performs one identifiable task and may be broken down further.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Algorithms
Programming
Data Representation
Computer Systems

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

The table one extra row.
gainslosescopies

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AThe algorithm outputs 1.
BThe variable x falls from 5 to 3 to 1.
CThe loop stops because 1 is not greater than 1.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

ASC means sorting from smallest to largest, or A to Z.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Algorithms, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.