Introduction To Computer - Chapter 7
Introduction To Computer - Chapter 7
Algorithms
What is Algorithm? Algorithm Basics
Start Program
Enter two numbers, A, B
Print Sum
End Program
Examples of Pseudocode:
• Feasible:
The algorithm must be simple, generic and practical, such
that it can be executed upon will the available resources. It
must not contain some future technology.
• Language Independent:
The Algorithm designed must be language-independent, i.e.
it must be just plain instructions that can be implemented in
any language, and yet the output will be same, as expected.
Advantages of Algorithms
1. Define an algorithm.