Question: Quick Java Question!! Please explain If your algorithm runs its critical section 1 + 2 + 3 + ... + (n-2) + (n-1) + n
Quick Java Question!! Please explain
If your algorithm runs its critical section 1 + 2 + 3 + ... + (n-2) + (n-1) + n times, what is the asymptotic behavior of the algorithm?
A. O(n^2) - quadratic
B. O(n^3) - cubic
C. O(2^n) - exponential
D. O(n!) - factorial
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
