Algorithm vs. Program
A program is simply an algorithm specialized to a particular situation …
Alphabetize CDs is an instance of Exchange Sort
Exchange Sort can be specialized to other cases
- Sort CDs by other criteria, e.g. title
- Sort books by title or other criteria
- Sort canceled checks, students’ homework assignments, vehicles, etc.
The algorithm, being a process with only a limited number of specifics given, is more abstract than is the program
All programs are algorithms. However, not all algorithms are programs.