Question

The amount of multiplications needed to compute Tn(x)Assume that we need to compute To(x), Ti(a),...( for a specific x. How many multiplications are needed if we use the recursio

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The recursion formula is

T_n(x)=2xT_{n-1}(x)-T_{n-2}(x)

We first find T_0(x)=1,T_1(x)=x in 0 multiplications

For each next value, we find T_n(x)=2xT_{n-1}(x)-T_{n-2}(x) in 2 multiplications and one subtraction

So 3 each require 2 multiplications

Which means a total of (n-2 + 1) × 2-2(n-1) multiplications for computation of T_0,T_1,T_2,T_3,\cdots T_n

Add a comment
Know the answer?
Add Answer to:
Assume that we need to compute To(x), Ti(a),...( for a specific x. How many multiplications are n...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • (Basic) We would like to minimize the number of (scalar) multiplications used to compute the product...

    (Basic) We would like to minimize the number of (scalar) multiplications used to compute the product of four matrices, A1A2A3A4, where the matrices have dimensions 3 × 2, 2 × 4, 4 × 3, 3 × 3, respectively. Recall that we defined m[i, j] to the be the minimum number of multiplications needed to compute the product AiAi+1 · · · Aj . Fill out the DP table completely. In other words, compute m[1, 1], m[2, 2], m[3, 3], m[4,...

  • 2. The Chebyshev polynomials can be determined from T.(x) = cos(n cos-?x). (a) Find T-(x) from...

    2. The Chebyshev polynomials can be determined from T.(x) = cos(n cos-?x). (a) Find T-(x) from above formula. (b) Find Tn+1(x) + Tn-1(x) in terms of T,(x). (c) Show that In/2] n! Tn () = KO (2k)! (n – 2k);?"*2*(x2 – 1)". (Note: You need to prove it in detail. To do it, you may need to consider two cases: n=2p-1 (odd) and n=2p (even). )

  • Problem Statement: Let f(x) = V1 + x. Back in our first semester of calculus, we...

    Problem Statement: Let f(x) = V1 + x. Back in our first semester of calculus, we used a linear approximation L(a) centered at c = 0 to find an approximation to V1.2. In our second semester, we improve upon this idea by using the Taylor polynomials centered at c= 0 (or Maclaurin polynomials) for f(x) to obtain more accurate approximations for V1.2. (a) Compute Ti(x) for f(x) = V1 + x centered at c= 0. Then compute L(x) for f(x)...

  • Once again we will create a program that tells us how many months we need to...

    Once again we will create a program that tells us how many months we need to save to reach a goal. This time however, using recursive functions. The guidelines are the following:  In main, ask the user for the initial amount, the goal and the “monthly amount” (the constant amount of money that will be put aside every month).  Once you have these values you should call your function. Your function should not return anything and it should...

  • I need help with this question. Thank you. Assume that in a specific project, we tend...

    I need help with this question. Thank you. Assume that in a specific project, we tend to study the effect of hydrocarbon consumption, running, walking, biking, gender, and age on weight loss. Discuss about the scientific methods you would use to see the effect of these factors (hint: do you need to find mean, median, variance, etc.? why are they needed? How about IQR? Please include all the steps including hypothesis that you should check and how you should design...

  • General Recursion C++ How many possible bridge hands are there ? This question is a specific case...

    General Recursion C++ How many possible bridge hands are there ? This question is a specific case of the general question, “How many combination of X items can I make out of Y items ?” In the case of the bridge hand, X is 4 and Y is 8. The solution is given by the following formula: Combinations(Y, X) = Y      if X = 1 1   if X = Y Combinations(Y-1, X-1) + Combinations(Y-1, X) if Y > X >...

  • Need help with how to input these onto TI-83 plus. Need help with learning how to...

    Need help with how to input these onto TI-83 plus. Need help with learning how to use the functions to compute these equations on my calculator. Dandelions are studied for their effects on crop production and lawn growth. In one region, the mean number of dandelions per square meter was found to be 8.8. Find the probability of no dandelions in an area of 1 m2. P(X = 0) = Find the probability of at least one dandelion in an...

  • Assume that in a specific project, we tend to study the effect of hydrocarbon consumption, running,...

    Assume that in a specific project, we tend to study the effect of hydrocarbon consumption, running, walking, biking, gender, and age on weight loss. Discuss about the scientific methods you would use to see the effect of these factors (hint: do you need to find mean, median, variance, etc.? why are they needed? How about IQR? Please include all the steps including hypothesis that you should check and how you should design your experiment. What are the outcomes? What are...

  • This is from algorithm's class: 4. Consider the problem of multiplying n rectangular matrices discussed in...

    This is from algorithm's class: 4. Consider the problem of multiplying n rectangular matrices discussed in class. Assume, in contrast to what we did in class, that we want to determine the maximum number of scalar multiplications that one might need (that is, compute the maximum of all possible parenthesizations) Formulate precisely an algorithm that determines this value. Then carry out your method on the following product to show what is the worst-possible parenthesization and how many scalar multiplications are...

  • We will also need a catalytic amount of AlCl3. For this we will use 0.1 equivalents...

    We will also need a catalytic amount of AlCl3. For this we will use 0.1 equivalents of AlCl3. Question #26: How many mmoles of AlCl3 will be needed for our reaction? Round to the tenths place. mmol

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT