Q. Finiteness property of an Algorithm is
-
(A)
The number of steps in the algorithm should be finite.
-
(B)
The algorithm should terminate after a finite no. of times.
-
(C)
For all possible combinations of input data, the algorithm terminates after a finite no. of steps.
-
(D)
None of above
β
Correct Answer: (C)
For all possible combinations of input data, the algorithm terminates after a finite no. of steps.