Re: Analyzing Alg. Runtime



So if it was <= and assuming we count the for loops executing for the
test case the runtimes would be :

1. 1
2. n+1
3. n
4. ½n²+1
5. ½n²
6. n
7. 1

.