11.07.2015 Views

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

Data Structures and Algorithm Analysis - Computer Science at ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

480 Chap. 14 <strong>Analysis</strong> Techniques14.5 Use the shifting method to solve the summ<strong>at</strong>ionn∑i 2 .i=114.6 Use the shifting method to solve the summ<strong>at</strong>ionn∑2 i .i=114.7 Use the shifting method to solve the summ<strong>at</strong>ionn∑i2 n−i .i=114.8 Consider the following code fragment.sum = 0; inc = 0;for (i=1; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!