Algorithm

An algorithm is a sequence of steps we perform to solve any given problem. An algorithm should also satisfy the following.

  • Each step should be unique and cannot be broken down into further smal steps
  • The order of steps is also important
  • Algorithm should return a result
  • Algorithm should not run for an infinite time