GATE IT 2007 · Asymptotic Analysis & Recurrences

MCQ · 1 mark · Problem PROG-DIVC-0132

Exponentiation is a heavily used operation in public key cryptography. Which of the following options is the tightest upper bound on the number of multiplications required to compute \(b^n \bmod{m}, 0 \leq b, n \leq m\) ?
  1. A
    \(O(\log n)\)
  2. B
    \(O(\sqrt n)\)
  3. C
    \(O\Biggl (\frac{n}{\log n} \Biggr )\)
  4. D
    \(O(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/3450/gate2007-it-17

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