asked 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?

asked
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.
answered
User Quano
by
7.7k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.