• retagged by
2,783 views

3 Answers

1 1 vote

= log1n + log2n + log3n +log4n .............lognn

= logn/log1 + logn /log2 +logn/log3 +logn/log4 .......... logn/logn (By using property of log )

= logn ( 1/log1 +1/log2 + 1/log3 +1/log4............1/logn ) 

= O(logn)

0 0 votes
Answer is 1 for n=1 and infinity for all other values.

This can be done by substituting 1 and 2,3,4..in place of n.

For n=1, log 1 base 1 is 1 while for n=2, 3.. Log2 base 1 is infinity
0 0 votes
f(n)=logn{1/log2+1/log3+1/log4+1/log5+1/log6+1/log7+1/log/8+1/log9+1/log10+1/log11+.........1/logn} (base is 10)

let sum of first nine term be k where k is some constant and sum of remaining term will be <2(less than 2,let it's x))

f(n)=logn{k+x}

f(n)=klogn+xlogn

so,f(n)=O(logn)
Position:
Show:

Related questions

1 1 vote
2 2 answers
1.0k
1.0k views
Sidd_ asked Jun 4, 2017
1,008 views
Is n^2 2^(3log base 2 n) = theta (n^5).
0 0 votes
2 answers 2 answers
868
868 views
dragonball asked Aug 2, 2018
868 views
How the slowness and the fastness of any algorithm depends ?Is (n/logn) is slower than log(logn) ?
51 51 votes
6 answers 6 answers
13.6k
13.6k views
Misbah Ghaya asked Nov 29, 2016
13,646 views
How many substrings (of all lengths inclusive) can be formed from a character string of length $n$? Assume all characters to be distinct, prove your answer.
51 51 votes
8 answers 8 answers
17.6k
17.6k views
Kathleen asked Sep 14, 2014
17,559 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...