HomeAll tracks · pricing · account
Python11 apps · Python, SQL & data
Start free Log in
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
Subscribe to unlock this lesson.
← Algorithms 0 / 10 📏 Rules sheet

Lesson 01Thinking in stepsO(n)

What an algorithm is

A finite list of exact steps that turns any valid input into the right output. First example: find the largest value in a list.

The situation

A machine can’t “just look”

A quiz app shows the day’s top score. “Easy,” says the designer, “just look at the list and pick the biggest.” But a computer can’t glance at a list. It can only do small, exact things: read one value, compare two numbers, remember a result. To find the top score it needs a recipe made of those small steps, one that works for every list, long or short. That recipe is an algorithm.

The question this lesson answersHow do you tell a machine, step by step, to find the largest value in a list, and how much work does it take?