An algorithm is a step-by-step procedure or set of rules that defines a sequence of operations to be performed to solve a specific problem or accomplish a particular task. It is a fundamental concept in computer science and mathematics, with applications across various domains, including the context of adding whole numbers.