Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP

Status
Not open for further replies.

hameed

Technical User
Jun 18, 2001
4
GB
Hi there!

Can someone possibly give me the analysis of the running time of the following segment using big-O notation ?

sum = 0;
for (i=0; i<n; i++)
for (j=0; j<i*i; j++)
for(k=0; k<j; k++)
sum++;



thanks a lot
 
Don't worry folks I got the answer. That wasn't too hard. Just had trouble with sigma notations.

thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top