edited by
558 views

3 Answers

1 votes
1 votes
yes, we cant apply masters on -ve sign..
0 votes
0 votes

Check Master's Method Here : https://www.youtube.com/watch?v=lPUhHmgrpik

0 votes
0 votes

Using Substitution method, T(n) = O(n2).

Decreasing GP: Solving gives approximately 1 because the (common ratio)log n  gets subtracted from 1 and common ratio < 1 . for larger values of log n, (common ratio)log n = 0. There are log n terms in this GP.

If you ask me O(-n2) is same as O(n2).

Visit this link : https://www.quora.com/Is-it-theoretically-possible-for-an-algorithm-to-have-negative-complexity

ps: Sorry for cutting and clarity :)

Related questions

3 votes
3 votes
4 answers
1
LavTheRawkstar asked Apr 16, 2017
4,441 views
T(n) = 100 T (n/99) + log(n!) Answer is T(n) = θ (n log n)a)answer is justifiedb)answer is not justifiedc)cannot be determinedd)none
0 votes
0 votes
3 answers
3
1 votes
1 votes
1 answer
4