What is the difference between a computer program and an algorithm?

303 views

When I was growing up computer program was software. Now everyone talks about algorithm. What is the differance between the two?

In: 6

10 Answers

Anonymous 0 Comments

An algorithm is a sequence of rules that guarantees a particular outcome (eg, sorting a list correctly). It can be implemented in any reasonably complete programming language.

A computer program is a sequence of instructions in a particular programming language. It may accomplish something, or nothing. It may terminate, or it may continue until the sun explodes. It is its own lawless thing.

You are viewing 1 out of 10 answers, click here to view all answers.