An algorithm is a set of rules dictating how something should be computed.
An algorithm to compute an average is:
- Sum up the values of each case, one by one, in the order in which they appear in the data.
- Divide the sum by the number of cases.
Please sign in to leave a comment.