Per the lecture, an algorithm is best described as
- a finite, unambiguous sequence of steps for a defined problem
- any program written in a high-level language
- a benchmark suite for comparing CPU speeds
- a snippet of pseudo-code that compiles to assembly
Show answer and solution
Correct answer: A. a finite, unambiguous sequence of steps for a defined problem
An algorithm is language-agnostic and machine-agnostic: a finite, unambiguous sequence of steps for a defined problem.
A program is one specific implementation
a benchmark suite is a measurement harness
pseudo-code is a writing notation.
The algorithm itself is the abstract recipe.