Bubble Sort (Intercambio directo)

Desordenado: -1, 5, 12, 9, 11, 1, 4, 11, 1, 10,

Burbuja mejorado

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

Burbuja convencional

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