I have two running time functions here. TA(n)= n^2+n+8 TB(n)= n+4
I suppose I need to use big O notation here. The first one is O(n^2) and the second one is O(n). Tnen I need to compare these two algorithms, however, I do not know how I can find the value of n, when two algorithms are the same fast, and when TA is faster then TB and when TB is faster than TA.
The correct answer is when n=2, two algorithms are the same fast, but i do not know how to get n. Can anyone help?