Digital Logic Design Week01Fall2022
Digital Logic Design Week01Fall2022
•
More precisely, an algorithm is a sequence of
instructions that act on some input data to produce
desired output in a finite number of steps.
<date/time> 2
P Properties of Algorithms
(a) Input – An algorithm must receive some input data
supplied externally.
(b) Output – An algorithm must produce at least one output
as the result.
(c) Finiteness – No matter what the input might be, the
algorithm must terminate after a finite number of steps. For
example, a procedure which goes on performing a series of
steps infinitely is not an algorithm.
P Properties of Algorithms
(d) Definiteness – The steps to be performed in the algorithm
must be clear and unambiguous.