GATE CS 2016, set 2 · Question 49 · Algorithms · Numerical answer (NAT) · 2 marks · no negative marks

The given diagram shows the flowchart for a recursive function A(n). Assume that all statements, except for the recursive calls, have O(1) time complexity. If the worst case time complexity of this function is O(n^α), then the least possible value (accurate up to two decimal positions) of α is ______ .

Flowchart titled 'Flowchart for Recursive Function A(n)'. Start → box A(n/2) → decision diamond D1 (the diamonds carry no conditions or labels). D1 has two exits: the left exit goes to box A(n/2) → Return. The right exit goes to box A(n/2) → box A(n/2) → decision diamond D2. D2 has two exits: the right exit goes directly to Return. The downward exit goes to box A(n/2) → decision diamond D3. D3 has two exits: the left exit goes to box A(n/2) → Return. The right exit goes directly to Return. There are seven A(n/2) call boxes in all: one before D1, one on D1's left branch, two in series on D1's…
Answer

Answer between 2.2 and 2.4 (any value in this range is right)

Answer from the official GATE CS 2016 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes