Solved

Give a Big-O Estimate for the Number of Operations (Where t:=1 for i=n to n2t:=t+2it\begin{array} { l } t : = 1 \\\text { for } i = n \text { to } n ^ { 2 } \\t : = t + 2 i t\end{array}

Question 48

Short Answer

Give a big-O estimate for the number of operations (where an operation is an addition or a multiplication)
used in this segment of an algorithm: t:=1 for i=n to n2t:=t+2it\begin{array} { l } t : = 1 \\\text { for } i = n \text { to } n ^ { 2 } \\t : = t + 2 i t\end{array}

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents