Skip to content
Related Articles

Related Articles

Improve Article

Algorithms | Divide and Conquer | Question 3

  • Last Updated : 28 Jun, 2021
Geek Week

Consider the polynomial p(x) = a0 + a1x + a2x^2 +a3x^3, where ai != 0, for all i. The minimum number of multiplications needed to evaluate p on an input x is:
(A) 3
(B) 4
(C) 6
(D) 9


Answer: (A)

Explanation: Multiplications can be minimized using following order for evaluation of the given expression.
p(x) = a0 + x(a1 + x(a2 + a3x))

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :