Question: Consider the following abstract algorithm. for i = 1 to n Call method MyMethod(); endfor Assume that the method MyMethod() runs in O() time.
Consider the following abstract algorithm. for i = 1 to n Call method MyMethod(); endfor Assume that the method MyMethod() runs in O() time. Express the algorithm's runtime using Big-Oh notation;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
