An algorithm is a collection of **Sequence of steps** to solve a particular problem.

an algorithm is a collection of steps to solve a particular problem.

Algorithms are procedures or a set of steps given to a system to solve a problem or perform a specific task.

Algorithms are finite sets of ordered instructions created to accomplish a pre-defined task. An algorithm is the core logic of a problem expressed as pseudocode or in a flowchart. Typical algorithm categories are:

Search

Sorting

Dynamic programming

Graph or tree traversing

String pattern matching