
6.7.1 Theory of algorithms and formal languages
Problem:
Determine the time and capacity complexity of algorithms for solving the following problems under uniform and logarithmic weight criteria.
Calculate the average of the elements of an array of \( n \) numbers.