we have Algorithm A whose runtime is f(n) =
and Algorithm B whose runtime g(n) =
Assume we want to write a library function that is given an input of size n,and then selects which of the 2 algorithms to use based on which gives the best runtime for that size.Formally determine the cuttoff for n when the library should stop using one algorithm and should start using the other.Show your work and justify your answer.
Please help![]()


LinkBack URL
About LinkBacks
