1. Consider the following recurrence. T(n) = T([n/2])+2T([n/8])+n n8, and T(n) = 1 1n 0....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Consider the following recurrence. T(n) = T([n/2])+2T([n/8])+n n8, and T(n) = 1 1n <8. One can prove that T(n) = O(n). Do you see that T(n) = (n)? The goal of this problem is to show a more general statement and to refresh your induction skills. Let C1, C2, C3 be rational numbers such that 0 < c c C3 and c + C+ C3 < 1. Let a > 0. Consider the recurrence T(n)T([cn])+ T([cn]) + T([czn])+an, n>1/c, T(n) = 1 n1/c. Prove by induction that T(n) = O(n). More precisely show that T(n) an + b for n 1 where a, b > 0 are some fixed but suitably chosen constants (you get to choose and fix them based on C1, C2, C3, ). You may first want to try the concrete recurrence at the start of the problem. How does a depend on C1, C2, C3? Consider the recursion tree for the recurrence. What is an asymptotic upper bound on the depth of the recursion tree? Express this as a function of n and C1, C2, C3. You do not need to prove correctness of your bound. We now consider a somewhat more general setting. Let 0 < c c... Ck < 1 bek rationals such that C <1. And a > 0. Suppose we have a recurrence of the form k T(n) = T([cn])+an, n1/c,T(n)=1 n1/c. i=1 You can show that T(n) = O(n) via induction as in the simpler case when k = 3. State the bound for a in this more general setting and also the depth of the recursion as a function of n, C1, C2,..., Ck. You do not need to prove correctness of your bound. 1. Consider the following recurrence. T(n) = T([n/2])+2T([n/8])+n n8, and T(n) = 1 1n <8. One can prove that T(n) = O(n). Do you see that T(n) = (n)? The goal of this problem is to show a more general statement and to refresh your induction skills. Let C1, C2, C3 be rational numbers such that 0 < c c C3 and c + C+ C3 < 1. Let a > 0. Consider the recurrence T(n)T([cn])+ T([cn]) + T([czn])+an, n>1/c, T(n) = 1 n1/c. Prove by induction that T(n) = O(n). More precisely show that T(n) an + b for n 1 where a, b > 0 are some fixed but suitably chosen constants (you get to choose and fix them based on C1, C2, C3, ). You may first want to try the concrete recurrence at the start of the problem. How does a depend on C1, C2, C3? Consider the recursion tree for the recurrence. What is an asymptotic upper bound on the depth of the recursion tree? Express this as a function of n and C1, C2, C3. You do not need to prove correctness of your bound. We now consider a somewhat more general setting. Let 0 < c c... Ck < 1 bek rationals such that C <1. And a > 0. Suppose we have a recurrence of the form k T(n) = T([cn])+an, n1/c,T(n)=1 n1/c. i=1 You can show that T(n) = O(n) via induction as in the simpler case when k = 3. State the bound for a in this more general setting and also the depth of the recursion as a function of n, C1, C2,..., Ck. You do not need to prove correctness of your bound.
Expert Answer:
Related Book For
Practical Introduction To Data Structures And Algorithm Analysis Java Edition
ISBN: 9780136609117
1st Edition
Authors: Clifford A. Shaffer
Posted Date:
Students also viewed these programming questions
-
Q1. You have identified a market opportunity for home media players that would cater for older members of the population. Many older people have difficulty in understanding the operating principles...
-
When President Obama was President he had discussed raising income taxes for individuals earning over $250,000 in income. Explain how these higher income taxes will affect the aggregate demand curve....
-
How many moles of carbon dioxide, CO2, are in a 22 gram sample of the compound?
-
For two events A and B, the following probabilities are given. P(A) = A P(B) = .25 P(A|B) = .7 Use the appropriate laws of probability to calculate (a) P() (b) P(AB) (c) P(A U B)
-
A 500 m long levee made of compacted clay impounds water in a reservoir as shown in Figure P2.8. There is a 1 m thick (measured in the direction perpendicular to the seam) sand seam continuing along...
-
Exercise 3.31 introduced the dataset StatisticsPhD, which gives enrollment for all 82 graduate statistics programs in the US in 2009. Use StatKey or other technology to generate a sampling...
-
How might a developing countrys decision to reduce trade restrictions such as import tariffs affect its ability to borrow in the world capital market?
-
Question: Christian Volhard works as a financial analyst for Tooele Company, which operates a large chain of fast-food restaurants. One of the key costs of the fast-food restaurants is the cost of...
-
Avtosh LLC is an car dealer company established in Baku, Azerbaijan. The Company uses perpetual inventory system. All sales returns from customers result in goods being returned to inventory, if it...
-
What is the role of restrictive covenants in a bond indenture? What are some common covenants?
-
Mutual funds have a wide variety of investment strategies. And in a particular quarter or over a particular year, some will have substantially higher returns than others. Would you expect these same...
-
What are the reasons for issuing preferred stock? Why does the federal government usually acquire preferred shares when it takes an equity position in a firm?
-
How will an increase in perceived credit risk on a risky bond affect its price? Its yield? How will it affect the price and yield of a riskless bond?
-
Why do you suppose that lending for real estate purchases commonly takes the form of mortgages instead of unsecured loans? What are the advantages to the borrower?
-
Compare and contrast the advantages and disadvantages of the BCG and McKinsey matrices. Are there industries for which one matrix is a better tool of analysis than the other? Why? Accurate discussion...
-
Activator rod AB exerts on crank BCD a force P directed along line AB. Knowing that P must have a 100-N component perpendicular to arm BC of the crank, determine (a) The magnitude of the force P, (b)...
-
A business both buys loose tools and also makes some itself. The following data is available concerning the years ended 31 December 2014, 2015 and 2016. You are to draw up the Loose Tools Account for...
-
Think about it for a minute and then list five costs you think are direct and five that you think are indirect.
-
From the following information, prepare a manufacturing account and statement of profit or loss for the year ending 31 December 2016 and a statement of financial position as at 31 December 2016 for...
Study smarter with the SolutionInn App