Answer:
Follows are the solution to this question:
Step-by-step explanation:
The scale of the subproblem for a node is
at depth.
The tree then has lg n + 1 and
leaves.
Complete costs for all depth I nodes for I = 0. 1 , 2, ......, lg n-1 is:


![= \sum_ {i = 0} \lg n - 1 2^i n + \sum_(i = 0) \lg n - 12 * 4^i + \Theta (n^2)\\\\= [ ( 2\lg n - 1)/( 2 - 1) ]n + 2 * [ ( 4\lg n - 1)/( 4 - 1) ]n + \Theta (n^2)\\\\= ( 2\lg n - 1) n] + ((2)/(3))( 4\lg n - 1)+ \Theta (n^2)\\\\= (n-1)n - (2)/(3) (n^2 -1) +\Theta (n^2)\\\\= \Theta (n2)\\](https://img.qammunity.org/2021/formulas/computers-and-technology/college/ij7hm10uiegt9wkozzf1ioykjmlzb83rbo.png)
verfify the value:
![\to T(n) \leq c (n^2 - dn) \\\\T(n) = T(n) = 4T(((n)/(2)) + 2) + n \\\\ \leq 4c [ (((n)/(2)) + 2)2 - d(((n)/(2)) + 2) ]+ n \\\\ \leq 4c [ ((n^2)/(4) + 2n + 4) - (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),\\\\](https://img.qammunity.org/2021/formulas/computers-and-technology/college/720r0fr2zd6upqhbecmwcy27gppv66yy3e.png)
Where there is the last stage for
.