How is Big O notation useful when n_0 and C does not need to be unique?

230 views

The big O specifies 2 positive constants c and n_0 but there can be multiple c and n_0 values that are solutions. How can we decide which one is the best. What does having multiples solutions signify ?

In: 5

4 Answers

Anonymous 0 Comments

Big O notation simply communicates the relationship between inputs and operations. Does the code have a linear relationship, how about an exponential one?

That is all you care about when looking at the efficiency of an algorithm.

You are viewing 1 out of 4 answers, click here to view all answers.