Write a concise definition for "algorithm".

An algorithm is a step-by-step procedure or set of rules for solving a problem or accomplishing a task, often used in computing and mathematical operations.