Open the editor

Computer science · High school

Big O Notation Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

Big O describes how an algorithm's work grows as its input grows, ignoring constants. Students compare growth curves, read how far apart they are for large inputs and predict running times.

The slides, one by one

1 Big O notation

How work grows with the input

Live graph: y = x²

If an app is fast for 100 users, will it be fast for a million?

2 Some algorithms grow far faster than others

\textsf{Steps needed as }n\textsf{ grows}
n^2\textsf{ soon leaves the others behind}

3 For large n, the gap is enormous

Steps, roughly

4 Predicting a running time

An O(n²) algorithm takes 2 s for 1,000 items. Estimate the time for 10,000 items.

→ n grows 10 times, so time grows 10² times

\dfrac{10\,000}{1000} = 10
10^2 = 100
2 \times 100 = 200\ \text{s}

About 200 seconds

5 Quick check

An O(n) algorithm takes 3 s for 1 million items. For 4 million it takes about…

  • 48 s
  • 3 s
  • 12 s
  • 6 s
Show the answer

12 s

Linear time: 4 times the input takes 4 × 3 = 12 s.

6 What to remember

\textsf{Big O: how work grows with }n

Drop constants and smaller terms

\log n < n < n\log n < n^2

Pick the slower-growing algorithm for big data

Challenge: Write 3n² + 5n + 100 in Big O notation.

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

What does O(n²) mean?

The work grows with the square of the input size: double n and the time roughly quadruples, multiply n by 10 and it grows about 100 times. Bubble sort is O(n²); merge sort is O(n log n).

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.