Apr 9, 2001 #1 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
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
Apr 10, 2001 #2 Thanks Programmer Nov 7, 2002 76 US Don't worry folks I got the answer. That wasn't too hard. Just had trouble with sigma notations. thanks anyway Upvote 0 Downvote
Don't worry folks I got the answer. That wasn't too hard. Just had trouble with sigma notations. thanks anyway