Basics of Computer and programming

2. Basic Concepts

2.2. Algorithm

From programming point of view,

An algorithm is a step by step procedure (technique) for solving any problem.

An algorithm is an effective method expressed as a finite set of well defined instructions.

Refers to the logic of a program and step by step description of how to arrive at the solution of a given problem.

For example, find the sum of two numbers.

Step 1: Start 

Step 2: Input A 

Step 3: Input B 

Step 4: Calculate C = A + B 

Step 5: Output C 

Step 6: Stop

Another example, Consider the following instructions that you need to boiling water
Step 1: Start
Step 2: Take water in a kettle.
Step 3: Place the kettle on the oven.
Step 4: Turn the oven on.
Step 5: Check whether water is boiled
Step 6: Turn the oven off
Step 7: Stop

"Algorithm and Flowchart" by Bangladesh Open University is licensed under CC BY-SA 4.0