Recents in Beach

Need of Algorithm



Need of Algorithm

  1.  To understand the basic idea of the problem.
  2.  To find an approach to solve the problem.
  3.  To improve the efficiency of existing techniques.
  4.  To compare the performance of the algorithm with respect to other techniques.
  5.  It is the best method of description without describing the implementation detail.
  6.  The Algorithm gives a clear description of requirements and goal of the problem to the designer.
  7.  A good design can produce a good solution.
  8.  To understand the flow of the problem.
  9.  To measure the behavior (or performance) of the methods in all cases (best cases, worst cases, average cases)
  10.  With the help of an algorithm, we can also identify the resources (memory, input-output) cycles required by the algorithm.
  11.  With the help of algorithm, we convert art into a science.
  12.  To understand the principle of designing.
  13.  We can measure and analyze the complexity (time and space) of the problems concerning input size without implementing and running it; it will reduce the cost of design.

Algorithm vs Program:

A finite set of instructions that specifies a sequence of operations to be carried out to solve a specific problem of a class of problem is called an algorithm.
On the other hand, the Program doesn't have to satisfy the finiteness condition. For example, we can think of an operating system that continues in a "wait" loop until more jobs are entered. Such a program doesn't terminate unless the system crashes.
DAA Need of Algorithm

Given a Problem to solve, the design Phase produces an algorithm, and the implementation phase then generates a program that expresses the designed algorithm. So, the concrete expression of an algorithm in a particular programming language is called a program.

Post a Comment

0 Comments