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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started