Algorithms, What are They ?
Algorithms are simply a set of instructions executed according to a predefined order in order to accomplish a task.
Any basic task could have an algorithm, algorithms are not just simply available in computer science or mathematics but rather can be found in everyday life as well. For example the simple task of making a cup of tea has an algorithm. we follow a set of instructions step by step in a predefined order to achieve the task of making a nice cup of tea.
Defining an algorithm can be done in many forms. The easiest form of defining an algorithm is simply by writing it down step by step in simple English.
Let see an example of an algorithm. As I mentioned above making a cup of tea can be defined using an algorithm.
Step 1 - Fill up the kettle with water
Step 2 - Place the kettle on the stove
Step 3 - Wait patiently for the water to boil
Step 4 - Get a cup and place a tea bag in the cup
Step 5 - Pour the boiling water into the cup with the tea bag
Step 6 - Stir it well
Step 7 - Enjoy your tea
The definition provided above with the example shows what an algorithm is all about and is the easiest way of understanding what is an algorithm.
Can you provide the algorithm for making scrambled eggs ? Give it a try !

Comments
Post a Comment