Bubble Sort Homework Help

  • Simplest sorting algorithm
  • Idea:
  • Set flag = false
  • Traverse the array and compare pairs of two elements
  • If E1 E2 - OK
  • If E1 > E2 then Switch(E1, E2) and set flag = true
  • If flag = true goto 1.

Bubble Sort Example:

Bubble Sort Homework Help


Implement Bubble Sort With An Array

implement bubble sort with an array


Bubble Sort Homework Help