Page 1 of 1

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
by answerhappygod
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 1
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 1 (72.88 KiB) Viewed 55 times
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?