An algorithm is a step-by-step procedure used to solve a problem or perform a task.
It must be clear, finite, and logical.
Algorithms are commonly written using plain language, flowcharts, or pseudocode.
They form the foundation of computer programming and are used to design efficient
solutions to problems.