Bubble Sort (Intercambio directo)

Desordenado: 8, 0, 6, 9, 0, 3, 12, 9, 2, 11,

Burbuja mejorado

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

Burbuja convencional

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