Question

Using a recurrence relation, prove that the time complexity of the binary search is O(log n)....

Using a recurrence relation, prove that the time complexity of the binary search is O(log n). You can use ^ operator to represent exponentiation operation. For example, 2^n represents 2 raised to the power of n.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

let n=2k Recurrence Relation 7(n) = + (/2) + 1 -> TV - Ten + + le = )! => Kalogn >T() = T (ha) + or tan) = T(1) + logn The )

IF YOU UNDERSTOOD IT CLEARLY, PLEASE LIKE/UPVOTE

OTHERWISE, FEEL FREE TO ASK IN COMMENT SECTION

I WILL SURELY HELP YOU!! THANK YOU!!

Add a comment
Know the answer?
Add Answer to:
Using a recurrence relation, prove that the time complexity of the binary search is O(log n)....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT