










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































for ( int i = 0; i< n ; i ++) sum ++;
for ( int i = 0; i < n; i ++) for ( int j = 0; j < n; j ++) sum ++;
Figure 2. Plot ( N vs. time) of various algorithms
n log 2 n n nlog 2 n n 2 2 n* 2 1 2 2 4 4 16 4 16 64 256 6.5 × 104 64 6 64 384 4096 1.84 × 10 19 1.84 × 10 19 μsec = 2.14 × 10 8 days = 5845 centuries
Computations on T ( N ) and problem sizes