Algorithm quiz(n): p = 1 for i = 1 to na do for k = 1 to n do p=p +k 1) What does the algorithm compute? 2) What is its
Posted: Sat Feb 19, 2022 3:21 pm
Algorithm quiz(n): p = 1 for i = 1 to na do for k = 1 to n do p=p +k 1) What does the algorithm compute? 2) What is its basic operation? 3) How many times is the basic operation executed? 4) What is the efficiency class of the algorithm?