An algorithm is a fancy to-do list for a computer. Algorithms take in zero or more inputs and give back one or more outputs.A recipe is a good example of an algorithm because it tells you what you need to do step by step. It takes inputs (ingredients) and produces an output (the completed dish).