Tiny example
Find the smallest
Look through a list and keep track of the smallest number seen so far.
Every step is simple, but together the steps solve the whole task.
Clear step-by-step methods for solving a problem.
An algorithm is a rulebook for what to do next. Good algorithms are precise enough that someone else, or a computer, could follow them.
Tiny example
Look through a list and keep track of the smallest number seen so far.
Every step is simple, but together the steps solve the whole task.
Why it matters
Algorithms power search, route finding, optimisation, sorting, simulations and many interactive tools.