Bubble Sort (Intercambio directo)

Desordenado: 7, 7, 12, -2, 11, 5, 10, 3, 7, 7,

Burbuja mejorado

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

Burbuja convencional

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