MSQ · 2 marks · Algorithm Analysis
GATE CS 2023 CS — Q54
Consider functions
Function_1 and Function_2 expressed in pseudocode as follows:Function_1
while n > 1 do
for i = 1 to n do
x = x + 1;
end for
n = ⌊n/2⌋;
end while
Function_2
for i = 1 to 100 * n do
x = x + 1;
end forLet and denote the number of times the statement "" is executed in
Which of the following statements is/are TRUE?
Function_1 and Function_2, respectively.Which of the following statements is/are TRUE?