Function_1 :- The for loop in function_1 will run 'n' times, but the outer while loop will change the value of 'n' to half each time.
Therefore, f1(n) = n + (n/2) + (n/4) + (n/8) + ... = n/(1-0.5) = 2n
Function_2 :- The for loop in function_2 will run '100n' times. Therefore, f2(n) = 100n
Theta(f2(n)) represents the set of all those functions who is asymptotically equal to f2(n).
Similarly, small-oh(f2(n)) represents the set of all those functions who is asymptotically smaller than f2(n). And small-omega(f2(n)) represents the set of all those functions who is asymptotically greater than f2(n).
example :- small-oh(n) represents the set of all those functions who is asymptotically smaller than equal to n.
small-oh(n) = {n, 2n, 3n, log(n), 100, ...} (all these functions are asymptotically smaller than equal to n)
Ans is A,D.