EL9343 Homework 2

$30.00

Download Details:

  • Name: Homework-02-8dftgc.zip
  • Type: zip
  • Size: 3.13 MB

Category:

Description

Rate this product

1. First use the iteration method to solve the recurrence, draw the recursion tree to analyze.
𝑇(𝑛) = 𝑇(
𝑛
2
) + 𝑇(
𝑛
3
) + 𝑛
Then use the substitution method to verify your solution.
2. Use the substitution method to prove that 𝑇(𝑛) = 2𝑇( is .
𝑛
2
) + π‘π‘›π‘™π‘œπ‘”
2
𝑛 𝑂(𝑛(π‘™π‘œπ‘”
2
𝑛)
2
)
3. Solving the recurrence:
𝑇(𝑛) = 3𝑇(
3
𝑛 ) + π‘™π‘œπ‘”
2
𝑛
(Hint: Making change of variable)
4. You have three algorithms to a problem and you do not know their efficiency, but fortunately, you
find the recurrence formulas for each solution, which are shown as follows:
A: 𝑇(𝑛) = 3𝑇(
𝑛
3
) + ΞΈ(𝑛)
B: 𝑇(𝑛) = 2𝑇(
9𝑛
10
) + ΞΈ(𝑛)
C:𝑇(𝑛) = 3𝑇(
𝑛
3
) + ΞΈ(𝑛
2
)
Please give the running time of each algorithm (In ΞΈ notation), and which of your algorithms is the
fastest (You probably can do this without a calculator)?
5. Can the master theorem be applied to recurrence of 𝑇(𝑛) = 𝑇( ? Why does it work or 𝑛
2
) + 𝑛
2
𝑙𝑔𝑛
not? Provide the asymptotic upper bound for this recurrence.