GATE CS 1999 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0163

If n is a power of 2, then the minimum number of multiplications needed to compute \(a^n\) is
  1. A
    \(\log_2 n\)
  2. B
    \(\sqrt n\)
  3. C
    n-1
  4. D
    n

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1469/gate1999-1-16

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com