Click here to Skip to main content
15,881,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi:
I need two function in this condition:

if f(n)=O(g(n)) then Log f(n) != Log (g(n))

additional information :!= means not equal

pleas introduce two this function.
Posted
Updated 17-Feb-12 5:28am
v2
Comments
YvesDaoust 17-Feb-12 8:47am    
The second part of the condition does not make sense; it is the same as f(n) != g(n), I don't think this is intended.
wizardzz 17-Feb-12 11:28am    
Sounds like homework.
Pradeep yaduvanshy 17-Feb-12 12:03pm    
As i think there O(g(n)) is the Order of meant worst case complexity.

then there so simple solution.

every functions f(n) and g(n) satisfy this if f(n)!= g(n).....

like
let f(n)=n^3 and g(n)=n^3-4*n+8

then f(n)==O(g(n))

bt log(f(n)) is not equal to log(g(n))...

1 solution

As i think there O(g(n)) is the Order of meant worst case complexity. then there so simple solution. every functions f(n) and g(n) satisfy this if f(n)!= g(n)..... like let f(n)=n^3 and g(n)=n^3-4*n+8 then f(n)==O(g(n)) bt log(f(n)) is not equal to log(g(n))...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900