Friday, October 16, 2009

1-7 ALGORITHMS

An algorithm is a tool for solving a well-specified computer problem. An algorithm is a finite step-by-step list of well-defined instructions for solving a problem. Algorithm takes some value or values, as input, and produces some value, or set of values, as output.

History: The word comes from the Persian author Abu Jaffar Mohammad ibn Musa al-Khowrzami who wrote a book with arithmetic rules dating from about 825 A.D.

Example 1. An array A of data contains numerical values in memory. Find the location and maximum value of the largest element in A.


No comments:

Post a Comment