Introduction

Important features of Algorithms

  1. Algorithms must always be non-ambiguous.
  2. The range of inputs for which an algorithm works has to be specified carefully.
  3. An algorithm can be implemented in multiple ways.
  4. There can exist several algorithms for solving the same problem.

Characteristics of Algorithms

  1. Input → Zero or more quantities externally supplied
  2. Finiteness → Algorithm terminates in a finite number of steps.
  3. Effectiveness → Each instruction must be primitive and feasible.
  4. Output → Atleast one output is produced.

Algorithm Design Techniques

Complexity of Algorithms