Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Bubble Sort

734db8ec0a1532dbf3b8a818267449bc?s=47 KuoE0
March 04, 2013

Bubble Sort

734db8ec0a1532dbf3b8a818267449bc?s=128

KuoE0

March 04, 2013
Tweet

More Decks by KuoE0

Other Decks in Programming

Transcript

  1. Bubble Sort ֲࢸݢʢKuoE0ʣ KuoE0.tw@gmail.com KuoE0.ch

  2. Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) http://creativecommons.org/licenses/by-sa/3.0/ Latest update: Mar

    4, 2013
  3. Origin 10 2 7 9 1 10 9 7 2

    1
  4. 7 2 10 1st Iteration 9 1

  5. 7 2 10 10 2 1st Iteration 9 1

  6. 7 2 10 10 2 1st Iteration 9 1

  7. 7 7 2 10 10 2 1st Iteration 9 1

    2
  8. 7 7 2 10 10 2 1st Iteration 9 1

    2
  9. 7 7 2 10 10 2 1st Iteration 9 1

    2 9 7
  10. 7 7 2 10 10 2 1st Iteration 9 1

    2 9 7
  11. 7 7 2 10 10 2 1st Iteration 9 1

    2 9 7 1 9
  12. 7 7 2 10 10 2 1st Iteration 9 1

    2 9 7 1 9
  13. 7 7 2 10 10 2 1st Iteration 2 7

    9 1 10 9 1 2 9 7 1 9 10 1
  14. 1 7 2 2nd Iteration 10 9

  15. 1 7 2 7 2 2nd Iteration 10 9

  16. 1 7 2 7 2 2nd Iteration 10 9

  17. 1 7 2 7 2 2nd Iteration 10 9 2

    9
  18. 1 7 2 7 2 2nd Iteration 10 9 2

    9
  19. 1 1 7 2 7 2 2nd Iteration 10 9

    2 9 7
  20. 1 1 7 2 7 2 2nd Iteration 10 9

    2 9 7
  21. 1 1 7 2 7 2 2nd Iteration 2 7

    1 9 10 10 9 2 9 7 1 9
  22. 3rd Iteration 10 9 7 2 1

  23. 3rd Iteration 10 9 7 2 1 2 7

  24. 3rd Iteration 10 9 7 2 1 2 7

  25. 3rd Iteration 10 9 7 2 1 2 7 1

    2
  26. 3rd Iteration 10 9 7 2 1 2 7 1

    2
  27. 3rd Iteration 10 9 7 2 1 2 1 7

    9 10 2 7 1 2 1 7
  28. 4th Iteration 10 9 7 2 1

  29. 4th Iteration 10 9 7 2 1 2 1

  30. 4th Iteration 10 9 7 2 1 2 1

  31. 4th Iteration 1 2 7 9 10 10 9 7

    2 1 2 1 1 2
  32. Result 1 2 7 9 10 10 9 7 2

    1
  33. End