Question: Consider two functions f(n)=an 2 , and g(n)=bnlgn . For what value of n do they intersect, and at which value(s) of the constants a

Consider two functions f(n)=an2, and g(n)=bnlgn. For what value of n do they intersect, and at which value(s) of the constants a and b? Pick some values of a and b and then find n. Experiment with different sets of values for a and b. What trends do you observe? an2 and bnlgn are terms that might come from an expression representing the amount of work done by a piece of code. Looking for where they are equal will help you decide which part is dominant. We suggest solving this problem empirically, rather than mathematically, i.e. draw graph of the functions. Remember that a and b are constants, but may not necessarily be integer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!