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:
Implement Bubble Sort With An Array
