An algorithm is best described as a step-by-step procedure or a set of rules for solving a specific problem or accomplishing a particular task. It is a well-defined, finite sequence of instructions that, when executed, leads to a solution or output for a given input or set of inputs. Algorithms are fundamental to computer science and problem-solving, and they can be implemented in various programming languages.