Penguin

Differences between version 3 and previous revision of BubbleSort.

Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History

Newer page: version 3 Last edited on Sunday, August 24, 2003 2:07:27 pm by AristotlePagaltzis Revert
Older page: version 2 Last edited on Sunday, August 24, 2003 2:06:18 pm by AristotlePagaltzis Revert
@@ -11,9 +11,9 @@
 | 3 | 1 | [[A] | [[__B__] | C | D 
  
 The brackets denote the elements which were compared (and possibly swapped) during an iteration. Bold elements have reached their final position. As you can see, the next largest element falls into the next last position after each iteration. 
  
-You can also easily see  
+A sample implementation might be  
  
  int [] array; 
  for(int i = array.length - 2 ; ; i--) { 
  for(int j = 0; j < i ; i++)