An algorithm is a set of steps to follow in a given situation.
The term “computer program” is usually reserved for a complete, usable product.
A computer program utilizes, among other things, various algorithms to do what it’s supposed to do, i.e. algorithms are one of the building blocks of computer programs.
Bear in mind that an algorithm doesn’t necessarily need to refer to something related to programming. For example, a cooking recipe can also be an algorithm. It’s just a set of instructions.
Latest Answers