An algorithm is a step-by-step set of rules or instructions designed to perform a specific task or solve a particular problem.
Derived from the name of Persian mathematician al-Khwārizmī, whose works introduced decimal positional number systems and systematic problem-solving methods to the Western world.