An algorithm is a step-by-step recipe the computer follows to solve a problem or learn from data.
Imagine it like this: A chocolate chip cookie recipe tells you exactly what to do, in order: mix the butter and sugar, add the eggs, add the flour, bake at 350°F. An algorithm is the same idea, except instead of cookies, it makes decisions or predictions.
Examples:
So? An algorithm is just a set of instructions — Machine Learning is just really clever recipes for finding patterns in data.