If n is a power of 2, then the minimum number of multiplications needed to…

PYQ GATE 1999

If n is a power of 2, then the minimum number of multiplications needed to compute aⁿ is:

  1. A.

    log₂ n

  2. B.

    √n

  3. C.

    n - 1

  4. D.

    n

Attempted by 861 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…