an alg analysis question


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

Posted by sabrina on August 06, 2000 at 12:13:57:

hi,
the following is an eg from slides

for(i=0;i for(j=0;j aray[i][j]=0;
}
}
I wonder if
the boolean operation: i arithmetic operation:i++ will execute n-1 times;
the boolean operation: j than the operation ,j++,will execute.
then the total time I got is different.I do not know
how I got a wrong answer.

thanks




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]