\begin{algorithmic} \STATE $y = 0$ \FOR {$i = n$ \DOWNTO $0$} \STATE $y = a_i + x\cdot y$ \ENDFOR \end{algorithmic}