Bubble Sort (Intercambio directo)

Desordenado: 5, 7, -2, 9, 4, 11, 8, 10, 7, 7,

Burbuja mejorado

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

Burbuja convencional

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