Order the following list of functions by their asymptotic growth, such that if function f(n) is above or to the left of g(n), then f(n) = O(g(n)) (i.e., put them in order, fastest to slowest.)
Characterize the following summations (exactly) in terms of n:
Sigma 1 <= i <= n ( 3i + 4 ) [where Sigma is the summation symbol].
Give a Big-Oh characterization, in terms of n, of the running time of each of the following Java methods.
public void ExA( int n ) {
int a;
for ( int i = 0; i < n; i += 2 )
a = i;
}
public void ExB( int n ) {
int a;
for ( int i = 0; i < n * n; i++ )
a = i;
}