Bubble Sort (Intercambio directo)

Desordenado: 2, 4, 0, 5, 9, 11, 11, -2, 12, 11,

Burbuja mejorado

  1. Iteración
    1. 2, 4, 0, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    2. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, Hubo intercambio
    3. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    4. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    5. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    6. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    7. 2, 0, 4, 5, 9, 11, -2, 11, 12, 11, Hubo intercambio
    8. 2, 0, 4, 5, 9, 11, -2, 11, 12, 11, No hubo intercambio
    9. 2, 0, 4, 5, 9, 11, -2, 11, 11, 12, Hubo intercambio
  2. Iteración
    1. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, Hubo intercambio
    2. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    3. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    4. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    5. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    6. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, Hubo intercambio
    7. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    8. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
  3. Iteración
    1. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    2. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    3. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    4. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    5. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, Hubo intercambio
    6. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    7. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
  4. Iteración
    1. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    2. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    3. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    4. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, Hubo intercambio
    5. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
    6. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
  5. Iteración
    1. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
    2. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
    3. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, Hubo intercambio
    4. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    5. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  6. Iteración
    1. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    2. 0, -2, 2, 4, 5, 9, 11, 11, 11, 12, Hubo intercambio
    3. 0, -2, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    4. 0, -2, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  7. Iteración
    1. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, Hubo intercambio
    2. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    3. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  8. Iteración
    1. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    2. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio

Burbuja convencional

  1. Iteración
    1. 2, 4, 0, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    2. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, Hubo intercambio
    3. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    4. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    5. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    6. 2, 0, 4, 5, 9, 11, 11, -2, 12, 11, No hubo intercambio
    7. 2, 0, 4, 5, 9, 11, -2, 11, 12, 11, Hubo intercambio
    8. 2, 0, 4, 5, 9, 11, -2, 11, 12, 11, No hubo intercambio
    9. 2, 0, 4, 5, 9, 11, -2, 11, 11, 12, Hubo intercambio
  2. Iteración
    1. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, Hubo intercambio
    2. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    3. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    4. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    5. 0, 2, 4, 5, 9, 11, -2, 11, 11, 12, No hubo intercambio
    6. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, Hubo intercambio
    7. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    8. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
  3. Iteración
    1. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    2. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    3. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    4. 0, 2, 4, 5, 9, -2, 11, 11, 11, 12, No hubo intercambio
    5. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, Hubo intercambio
    6. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    7. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
  4. Iteración
    1. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    2. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    3. 0, 2, 4, 5, -2, 9, 11, 11, 11, 12, No hubo intercambio
    4. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, Hubo intercambio
    5. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
    6. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
  5. Iteración
    1. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
    2. 0, 2, 4, -2, 5, 9, 11, 11, 11, 12, No hubo intercambio
    3. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, Hubo intercambio
    4. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    5. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  6. Iteración
    1. 0, 2, -2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    2. 0, -2, 2, 4, 5, 9, 11, 11, 11, 12, Hubo intercambio
    3. 0, -2, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    4. 0, -2, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  7. Iteración
    1. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, Hubo intercambio
    2. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    3. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  8. Iteración
    1. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
    2. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
  9. Iteración
    1. -2, 0, 2, 4, 5, 9, 11, 11, 11, 12, No hubo intercambio
Ordenado: -2, 0, 2, 4, 5, 9, 11, 11, 11, 12,