I can understand the run time complexity in the algorithm.
But just a bit confuse that when we knew the Algorithm run time complexity is O(n).
we can tell that f(n)< g(n)..
what is g(n) exactly..?
sorry with the rookie question..
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Let
f(x)andg(x)be two functions defined on some subset of the real numbers. One writesif and only if there exists a positive real number
Mand a real numberx0such thatIn general,
f(x)is the real cost (e.g. number of execution steps) of an algorithm on input scale ofx, whileg(x)is much simpler thanf(x)which can be used to characterize the complexity behavior off(x).