Step by Step A song about algorithms

Subject
Computer science
Genre
Hip-hop
Level
Ages 10–14
Length
1:45
Tempo
96 BPM

Sing it back

Can you finish the lyrics?

Eight quick questions on “Step by Step”. No music, just your memory. Then share your score and challenge a friend.

Algorithms in one paragraph

An algorithm is a precise, step-by-step set of instructions for solving a problem or completing a task. Every algorithm can be built from three building blocks: sequence (steps in order), selection (if/else choices) and iteration (loops). Algorithms take inputs and turn them into outputs.

Key facts from the song

  • An algorithm is a precise, step-by-step set of instructions.
  • Sequence means carrying out steps in a set order.
  • Selection uses if/else to choose between paths; iteration uses loops to repeat steps.
  • Algorithms take inputs (the data you start with) and produce outputs (the result).

Where it fits in your course

GCSE
GCSE Computer Science: Algorithms
England
KS2, KS3

Lyrics

Verse 1

An algorithm’s just a list of steps, precise and clear

Follow every instruction and the answer will appear

Inputs go in at the start, the data that you feed

Outputs come out at the end, the result that you need

Chorus

Sequence, selection, iteration, that’s the code

Steps in order, if or else, then loop it down the road

Three building blocks inside each algorithm we write

Precise step-by-step instructions, get them right

Verse 2

Making toast: put bread in, push the lever, steps in line

That’s a sequence, every step in order, one at a time

If it’s pale, then toast it more, else butter, that’s selection

Repeat for every slice you make, a loop is iteration

Chorus

Sequence, selection, iteration, that’s the code

Steps in order, if or else, then loop it down the road

Three building blocks inside each algorithm we write

Precise step-by-step instructions, get them right

Outro

Inputs in and outputs out, the steps are crystal clear

That’s an algorithm, now you’ve got the whole thing here

Algorithms flashcards

Say the answer out loud, then tap the card to check it. Or test yourself quick-fire.

  1. 1What is an algorithm?

    A precise, step-by-step set of instructions for solving a problem or completing a task.

  2. 2What is selection in an algorithm?

    Using if/else to choose between paths.

  3. 3What is iteration in an algorithm?

    Using loops to repeat steps.

  4. 4What are the inputs and outputs of an algorithm?

    Inputs are the data you start with; outputs are the result it produces.

Questions about algorithms

Still wondering about something? Ask us and we’ll reply within two working days.

What are the three building blocks of an algorithm?

Sequence (doing steps in order), selection (making a choice with if/else) and iteration (repeating steps with a loop).

What is an example of an algorithm in everyday life?

A recipe or the steps for making toast is an algorithm: a clear list of instructions, followed in order, that turns inputs like bread into an output like toast.

Welcome to BrainBeats

Sign in or create your free account

No password needed. Pick Google, or we’ll email you a sign-in link.

Continue with Google

or

Part of BrainBeats Plus

Unlock this song

Start your free week

7 days free, then $5.99/month billed yearly. Cancel anytime.

or

Play a free song