Question: Indicate whether f = O ( g ) , f = ( g ) , or f = ( g ) . f = n

Indicate whether f=O(g),f=(g), or f=(g).
f=n10,g=n20
f=2n,g=(32)n
f=10log2(n),g=nlog2(10)
f=22?log2(n),g=n2
Determine the big-O complexity of func1 in terms of M and N. A and B are M length
and N length arrays respectively.
Algorithm 1: func1
def func1(A,B,M,N) :
buildMaxHeap (B)
for iin range (M) :
j=N
while j>0 :
B[j]=A[i]+j+i
j=flr(j10)
 Indicate whether f=O(g),f=(g), or f=(g). f=n10,g=n20 f=2n,g=(32)n f=10log2(n),g=nlog2(10) f=22?log2(n),g=n2 Determine the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!