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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
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
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?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!