Page 4 - Data Struct
P. 4
4
Algorithm and Data Structure
Figure 1.0 : Example of Algorithm
Describe the role of algorithm in problem solving.
A problem can be solved by using a computer only if an algorithm can
be written for it. In addition, the use of algorithm provides many other
benefits:-
While writing an algorithm, you identify the step-by-procedure, the
major decision points, and the variables necessary to solve the
problem. This helps you in the development of the corresponding
program.
Identification of the procedure and the decision points reduces the
problem into a series of smaller problems of more manageable size.
Therefore, problems that would be difficult or impossible to solve as
a whole can be approached as a series of small solvable sub problems.

