Question Detail

COS 102 Concept & Properties of Algorithm lecture 3 Week4 Objective Question

Question

What does the characteristic of 'Uniqueness' imply for a good algorithm?
Options
A The algorithm must be the only one of its kind.
B Results of each step are uniquely defined and depend only on the input and preceding steps.
Correct Answer
C The algorithm should produce a unique solution for every problem.
D It must be written in a unique programming language.
Correct Answer

Option B is the correct answer.

Detailed Explanation

Page 10, under 'Characteristics of a good algorithm,' defines 'Uniqueness' as: 'results of each step are uniquely defined and only depend on the input and the result of the preceding steps.'

Hint

Focus on the specific definition provided for 'Uniqueness' within the context of algorithm characteristics.

Question Info