You are given coefficients (a0,a1,…,an) of a polynomial
p(x)=anxn+an−1xn−1+⋯+a1x+a0,
and a value x=x0. Evaluate p(x0) using the minimum number of multiplications.
How many multiplications does the naive approach use, and how few can you get away with?