I have some homework that I'm working on where there is a whole section of problems I need to solve taking the following form:
"Assume that T(1) = 1, and find the order of function T(n)."
I have no idea what this means, really, and I'm having difficulty finding anything specific enough online. What I've found (I think) is that a function of order k
is a function that can be solved using the k
previous terms of the sequence.
However, I don't really know how to apply this. An example of what I'm working with is as follows:
$$T(n) = 3T(\frac{n}{2}) + n$$
If someone could walk me through exactly what I need to do to find the order of this function, that would be great; I'm really lost.
Thanks in advance!