next up previous
Next: Approach 2: Compare last Up: CS101 Lecture 5 Previous: Algorithmic way of Sorting

Approach 1: Compare consecutive numbers

Work an example by hand here.

Summarizing:

We need to understand ``repeated'' execution of same statements (called LOOPS).



G. Sivakumar 2000-08-13