Determine the complexity class () of the following pseudocode in the worst case. There could be one or more correct answ
Posted: Mon Jun 06, 2022 6:45 pm
Determine the complexity class () of the following pseudocode in the worst case. There could be one or more correct answers. All variables are integers. Suppose that "random(a,b)" generates a random integer between a and b in O(1) time. i=1 s = 0 while i <= 2n for j = 1 to n s += random(1, 10) i = 2*i print(s) ###### □ (n²) ☐ 0 (2¹) □ (n2") (n log(n)) (n² log(n)) (2¹ log(n)) All are incorrect #######