177k views
2 votes
How are programs and algorithms related? A program is a part of an algorithm. They are not connected at all. An algorithm is a part of a program. They are the same. ​

User Potockan
by
5.5k points

1 Answer

1 vote

Answer:

A program is a set of instructions that a computer executes.

An algorithm is a set of instructions that must be done in order to get some result.

If an algorithm is written in a programming language, then the program is an implementation of the algorithm.

An algorithm must not, however, be a program. An algorithm can also be performed manually (e.g. calculate 6431 + 8316 on paper or in your head).

Step-by-step explanation:

User Kannan Goundan
by
4.9k points