bubble#sort - lehman collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8...
TRANSCRIPT
![Page 1: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/1.jpg)
0 1 2 3 4 5 6 7 8 9
42 33 75 18 15 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 2: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/2.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 75 18 15 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 3: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/3.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 75 18 15 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 4: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/4.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 75 18 15 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 5: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/5.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 75 15 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 6: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/6.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 75 15 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 7: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/7.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 75 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 8: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/8.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 75 22 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 9: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/9.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 75 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 10: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/10.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 75 10 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 11: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/11.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 75 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 12: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/12.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 75 8 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 13: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/13.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 75 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 14: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/14.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 75 72 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 15: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/15.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 72 75 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 16: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/16.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 72 75 55
Cell [i]
Cell [i+1]
Bubble Sort
Last Cell
![Page 17: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/17.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 72 55 75
Bubble Sort
Last Cell
![Page 18: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/18.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 19: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/19.jpg)
0 1 2 3 4 5 6 7 8 9
33 42 18 15 22 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 20: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/20.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 42 15 22 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 21: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/21.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 42 15 22 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 22: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/22.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 42 22 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 23: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/23.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 42 22 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 24: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/24.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 42 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 25: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/25.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 42 10 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 26: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/26.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 42 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 27: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/27.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 42 8 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 28: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/28.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 8 42 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 29: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/29.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 8 42 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 30: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/30.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 8 42 72 55 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 31: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/31.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 8 42 55 72 75
Bubble Sort
Last Cell
![Page 32: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/32.jpg)
0 1 2 3 4 5 6 7 8 9
33 18 15 22 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 33: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/33.jpg)
0 1 2 3 4 5 6 7 8 9
18 33 15 22 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 34: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/34.jpg)
0 1 2 3 4 5 6 7 8 9
18 33 15 22 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 35: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/35.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 33 22 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 36: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/36.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 33 22 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 37: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/37.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 33 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 38: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/38.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 33 10 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 39: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/39.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 33 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 40: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/40.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 33 8 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 41: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/41.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 42: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/42.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 43: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/43.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 44: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/44.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 8 33 42 55 72 75
Bubble Sort
Last Cell
![Page 45: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/45.jpg)
0 1 2 3 4 5 6 7 8 9
18 15 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 46: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/46.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 47: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/47.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 48: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/48.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 22 10 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 49: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/49.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 22 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 50: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/50.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 22 8 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 51: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/51.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 52: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/52.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 53: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/53.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 54: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/54.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 8 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 55: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/55.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 56: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/56.jpg)
0 1 2 3 4 5 6 7 8 9
15 18 10 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 57: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/57.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 18 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 58: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/58.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 18 8 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 59: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/59.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 8 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 60: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/60.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 8 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 61: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/61.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 8 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 62: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/62.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 8 18 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 63: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/63.jpg)
0 1 2 3 4 5 6 7 8 9
15 10 8 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 64: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/64.jpg)
0 1 2 3 4 5 6 7 8 9
10 15 8 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 65: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/65.jpg)
0 1 2 3 4 5 6 7 8 9
10 15 8 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 66: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/66.jpg)
0 1 2 3 4 5 6 7 8 9
10 8 15 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 67: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/67.jpg)
0 1 2 3 4 5 6 7 8 9
10 8 15 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 68: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/68.jpg)
0 1 2 3 4 5 6 7 8 9
10 8 15 18 22 33 42 55 72 75
Bubble Sort
Cell [i]
Cell [i+1]
Last Cell
![Page 69: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/69.jpg)
0 1 2 3 4 5 6 7 8 9
10 8 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 70: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/70.jpg)
0 1 2 3 4 5 6 7 8 9
10 8 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 71: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/71.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 72: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/72.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 73: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/73.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 74: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/74.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 75: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/75.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 76: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/76.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 77: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/77.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 78: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/78.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
Cell [i]
Cell [i+1]
![Page 79: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/79.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 80: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/80.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
Last Cell
![Page 81: Bubble#Sort - Lehman Collegecomet.lehman.cuny.edu/sfakhouri/teaching/cmp/cmp338...0 1 2 3 4 5 6 7 8 9 42 33 75 18 15 22 10 8 72 55 Cell[i]# Cell#[i+1]# Bubble#Sort. 0 1 2 3 4 5 6 7](https://reader034.vdocuments.site/reader034/viewer/2022052000/6012883e74333a7d640d9c6f/html5/thumbnails/81.jpg)
0 1 2 3 4 5 6 7 8 9
8 10 15 18 22 33 42 55 72 75
Bubble Sort
All Done!