The document analyzes the runtime of a recursive function T(n) using the master theorem. It shows that T(n) = 2*T(n/2) + Theta(log(n)) and applies the summation formula to determine the overall runtime is Θ(nlogn). Finally, it applies the master theorem conditions to conclude that T(n) is Θ(n).
The document analyzes the runtime of a recursive function T(n) using the master theorem. It shows that T(n) = 2*T(n/2) + Theta(log(n)) and applies the summation formula to determine the overall runtime is Θ(nlogn). Finally, it applies the master theorem conditions to conclude that T(n) is Θ(n).
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online from Scribd
The document analyzes the runtime of a recursive function T(n) using the master theorem. It shows that T(n) = 2*T(n/2) + Theta(log(n)) and applies the summation formula to determine the overall runtime is Θ(nlogn). Finally, it applies the master theorem conditions to conclude that T(n) is Θ(n).
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online from Scribd