Analysis of Algorithms 15 Example of Asymptotic Analysis • A better algorithm for computing prefix averages: Algorithm prefixAverages2(X): Input: An n-element arrayX of numbers. Output: An n-element array A of numbers such that A[i] is the average of elements X[0], ... , X[i]. Let A be an array of n numbers. s ← 0 for i ←0 to n - 1do s ...