1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
777dan777 [17]
3 years ago
5

Use a recursion tree to determine a good asymptotic upper bound on the recurrence T(n) = 4T(n/2 + 2) + n. Use the substitution m

ethod to verify your answer.
Computers and Technology
1 answer:
Shalnov [3]3 years ago
7 0

Answer:

Follows are the solution to this question:

Explanation:

The scale of the subproblem for a node is \frac{n}{2^i}  at depth.  

The tree then has lg n + 1 and 4^{lg n} = n^2leaves.  

Complete costs for all depth I nodes for I = 0. 1 , 2, ......, lg n-1 is:4^i ( \frac{n}{2^i}+ 2 ) = 2^i n + 2\times  4^i.

T(n)= \sum_{ i = 0}\lg n - 1( 2^i n + 2 . 4^i )+ \Theta  (n^2)\\\\

        = \sum_ {i = 0} \lg n - 1 2^i n + \sum_{i = 0} \lg n - 12 \times  4^i + \Theta  (n^2)\\\\= [ \frac{ 2\lg n - 1}{ 2 - 1} ]n + 2 \times [ \frac{ 4\lg n - 1}{ 4 - 1} ]n + \Theta  (n^2)\\\\= ( 2\lg n - 1) n] + (\frac{2}{3})( 4\lg n - 1)+ \Theta (n^2)\\\\= (n-1)n - \frac{2}{3} (n^2 -1) +\Theta  (n^2)\\\\= \Theta  (n2)\\

verfify the value:

\to  T(n) \leq c (n^2 - dn) \\\\T(n) = T(n) = 4T((\frac{n}{2}) + 2) + n \\\\ \leq 4c [ ((\frac{n}{2}) + 2)2 - d((\frac{n}{2}) + 2) ]+ n \\\\ \leq 4c  [ (\frac{n^2}{4} + 2n + 4) - \frac{dn}{2} - 2d)]+ n \\\\\leq cn2 + 8cn + 16c - 2cdn - 8cd + n\\\\\leq cn2 -cdn +  8cn + 16c - cdn - 8cd + n\\\\\leq c(n2 -dn) - (cd- 8c - 1)n - (d - 2). 8c\\\\\leq c(n2 -dn),\\\\

Where there is the last stage for  \to cd - 8c -1 \geq 0.

You might be interested in
Which of the following choices is evidence that present-day vertebrates shared common ancestors?
kolbaska11 [484]

Answer:

B/Second

Explanation:

They display similar embryo development and share common genes that control development.

6 0
2 years ago
Which site was launched by Ben t Smith iv
Kryger [21]

He launched the site "Wanderful Media".

5 0
3 years ago
All of the following are likely to be the benefits of a college graduate except:
Firdavs [7]
B. Earn less money over time

Over time, the interest is added to the principal, earning more interest. That's the power of compounding interest. If it is not invested, the value of the money erodes over time.
8 0
2 years ago
What were precomputed tables and why were they necessary?​
Alex Ar [27]

Answer:

In algorithms, precomputation is the act of performing an initial computation before run time to generate a lookup table that can be used by an algorithm to avoid repeated computation each time it is executed.

7 0
3 years ago
Read 2 more answers
if you want to open up your desktop computer to look inside what is one of the first things you should do
Sunny_sXe [5.5K]
Turn it on or open the laptop
7 0
4 years ago
Other questions:
  • What are ways to enter formula in Excel? Check all that apply
    8·2 answers
  • The processor itself is not a resource, therefore the OS is not involved in deciding how much of the processor time is used for
    14·2 answers
  • Define the terms candidate key and primary key. Explain the difference between a primary key and a candidate key.
    9·1 answer
  • Question 21 pts How many lines should an email signature be? Group of answer choices "5 to 6" "7 to 8" "1 to 2" "3 to 4"
    10·1 answer
  • One of the following is NOT a type of Intellectual Property
    7·1 answer
  • What breakthrough in sound recording facilitated stereophonic recording? Ο Α. overdubbing O B. multitrack recording O C. digital
    10·1 answer
  • An organization has hired a new remote workforce. Many new employees are reporting that they are unable to access the shared net
    11·1 answer
  • In cell K8, create a formula using the SUM function that calculates the total of the range D17:D20 and subtracts it from the val
    6·1 answer
  • Which of the following is document content that displays at the top of every page?
    11·1 answer
  • Please solve this in JAVA<br><br> Please see the attachment
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!