A logical set by step process, guided by the boundaries (or constraints) defined by a problem, followed to find a solution is called an algorithm. In a better and more pictorial form, it can be represented as follows:
What does that even mean? Look at the following example to understand the process.
Let's understand what an algorithm means with the help of an example.
It's your friend's birthday and you have been invited for the party (Isn't this exciting already?). You decide to gift her something. Since it's a gift, let's wrap it. What would you do to wrap the gift? How would you do it?
What did you just do? You used a logical step by step process to solve a simple task given to you.
Again coming back to the sentence: Logic + Control = Algorithm
Logic here, is the set of instructions given to a computer to solve the problem. 'Control' are the words making sure that the computer understands all your boundaries.
3.147.238.70