GATEverse Practice, past papers & mock tests
GATE 2022
AlgorithmsDivide and ConquerhardMSQ2 marks
Consider the following recurrence: f(1) = 1; f(2n) = 2f(n) - 1, for n ≥ 1; f(2n+1) = 2f(n) + 1, for n ≥ 1. Then, which of the following statements is/are TRUE?

Select every correct option.

Save your progress

Related Algorithms PYQs