150k views
4 votes
If your algorithm runs its critical section 1 + 2 + 3 + ... + (n-2) + (n-1) + n times, what is the asymptotic behavior of the algorithm?

User Teru
by
8.4k points

1 Answer

1 vote
if 1 and 2 becomes multiplayed gave 3 and 3+3=4 (4-2)+(4-1)= 2+3=4 and 4 is n.
User Quano
by
7.9k points