An algorithm is a set of instructions that a computer follows to solve a problem or do something. Think of an algorithm like a recipe: it tells you what ingredients you need and how to put them together to make something delicious. Algorithms are used all the time in computers, from searching the web to playing games and sorting information. Think of them like a set of directions that a computer can follow so that it knows what to do for a given task.