An algorithm is a step-by-step set of instructions or a well-defined procedure for solving a specific problem or accomplishing a particular task. Algorithms are used in mathematics and computer science.
Types of algorithms:
- Brute Force Algorithm.
- Recursive Algorithm.
- Dynamic Programming Algorithm.
- Divide and Conquer Algorithm.
- Greedy Algorithm.
- Backtracking Algorithm.
- Randomized Algorithm.