How the steps are performed by this algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM13339216

Consider the following algorithm (known as Horner's rule) to evaluate f(x) = summation from i=0 to N of aix^i:

poly = 0;
for( i = n; i >= 0; i-- )
poly = x * poly + a[i];

a. Show how the steps are performed by this algorithm for x = 3, f(x) = 4x^4 +8x^3
+ x + 2.

b. Explain why this algorithm work.

 

Reference no: EM13339216

Questions Cloud

Develop a program that displays random numbers : Using a timer to generate a random number, develop a program that displays random numbers between 1 and 47 for your state's lottery.
What should be the length l of the clapper rod for the bell : The clapper is a small, 1.8 kg mass attached to one end of a slender rod that has length L and negligible mass. The other end of the rod is attached to the inside of the bell
Find the angular frequency and period of the motion : The tip of a tuning fork goes through 480 complete vibrations in a time of 0.570s. Find the angular frequency. Find the period of the motion.
Estimate the radius of curvature of the cornea : To fit a contact lens to a patient's eye, a keratometer can be used to measure the curvature of the cornea-the front surface of the eye. Determine the radius of curvature of the cornea
How the steps are performed by this algorithm : Consider the following algorithm (known as Horner's rule) to evaluate f(x) = summation from i=0 to N of aix^i.
Variable costing and income reported : Prepare an income statement for the company under variable costing and explain any difference between the income under variable costing
Determine how fast does air flow in the duct : A 17cm radius air duct is used to replenish the air of a room 7.1 m x 5.2 m x 4.5 m every 16 min. How fast does air flow in the duct
What is the total potential energy of the ship : A 4.0x104 kg spaceship located halfway between them. What is the total potential energy of the ship
What is the velocity of the water in the outlet pipe : The inlet pipe has a diameter of 1.95 cm and is 2.07 m above the bottom of the tank. The outlet pipe has a diameter of 4.81 cm and is 4.39 m above the bottom of the tank.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd