What is an Algorithm?
Hi everyone!..
Today Our topic is ALGORITHMS. Okay, what is an algorithm?
In short "It's a set of step by step instructions for solving a problem to archive a result". These are more important to computers because they are general-purpose machines for solving a problem.
When we write an algorithm we can use a flow chart. Here we show how problem solution proceeds step by step.
In flow charts, there are different symbols we use to create it. you can see them below,
We use these shapes to draw the algorithm. I'll show you an example.
Ex:- Making a tea
When you prepare a tea there are steps you follow,
- Boiling the water
- Pour the water into a cup
- Add a teabag
- Remove the teabag
- You can put sugar or milk if you want
- Enjoy
In the following flow chart, you can see the same steps.
This is a brief introduction to algorithms. I hope now you have the basic knowledge about algorithms.
As I told you this is a brief introduction and I'm hoping to do another post explaining more advance. I stop for now,
Good day everyone, and stay safe!
Thank you so much for stopping by...
See you soon.
Comments
Post a Comment