Solved

An Algorithm Has the Following Formula for Its Running Time

Question 108

Essay

An algorithm has the following formula for its running time:
T(n) = T(n / 4) + 2
T(1) = 1
What is the running time of the algorithm in Big-Oh notation? Show your work.

Correct Answer:

verifed

Verified

O( log n )
T(n) = T(n / 4) + 2
T(n) = T(...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents