Question: = def fun(n): steps = 0 for i in range(n): for j in range(n): steps+=1 return steps def newfun(n): steps = 0 for il in

= def fun(n): steps = 0 for i in range(n): for j in range(n): steps+=1 return steps def newfun(n): steps = 0 for il in range(n): for i2 in range(n): for i3 in range(n): steps+=1 return steps Select one or more: newfun(100) = 1000000 newfun(100) = 10000 The number of steps taken by the algorithm that computes newfun(n) is polynomial as a function of n. The number of steps taken by the algorithm that computes fun(n) is not-polynomial as a function of the length of n. fun(10000) = 100 fun(100)=10000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
