An algorithm is a step-by-step set of instructions for solving a problem or completing a task. It is like a recipe that tells a computer exactly what to do to reach a specific result. Algorithms are used everywhere in technology, from sorting data to recommending videos or finding the quickest route on a map.