Algorithm

An algorithm is a process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer. 

Characteristics of an algorithm:-

  1. Finiteness: Total number of steps used in algorithm should be finite.
  2. Definiteness: Each step of algorithm must be clear and unambiguous.
  3. Effectiveness: Every step must be basic and essential,
  4. Input & Output: The algorithm must accept zero or more input and must produce atleast one output.

Example:-

  1. Write an algorithm for adding two numbers.







Post a Comment

0 Comments