Page 1 of 1

A program has two parameters, M and N. at the high level, the code looks like this: for counter in range(M): perform exp

Posted: Sat Feb 19, 2022 3:20 pm
by answerhappygod
A Program Has Two Parameters M And N At The High Level The Code Looks Like This For Counter In Range M Perform Exp 1
A Program Has Two Parameters M And N At The High Level The Code Looks Like This For Counter In Range M Perform Exp 1 (43.71 KiB) Viewed 35 times
A program has two parameters, M and N. at the high level, the code looks like this: for counter in range(M): perform expensive computation1 for counter in range(N): perform expensive computation2 Big-O analysis of this code yields the following time complexity: Cross out cross out O a. O(M) or O(N) O b. O(M*N) Oc O(M+N) O d. if M is bigger than N then O(N) else O(M) Cross out cross out After the following statements, what are the values of both variables? x = 2013 y = x x= 13 CROSS Out CROSS Out CROSS out O a. xis 2013 and y is 12 O b. xis 13 and y is 2013 Ocxis 2013 and y is 2013 O d. x is 13 and y is 13 Cross out