¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

SORTING ALGORITHMS

Gurleen Bansal Inglés

Contenido del mapa

SORTING ALGORITHMS

  1. BUBBLE SORT

    • Looks at first two items in list
      • If they're in the wrong order, swap them
        • Move to next pair of items and repeat
          • Repeat until the end of the list. This is called one pass
            • Repeat until they are completely in order
    • Pros
      • Simple algorithm
      • Efficient way to check if a list is already in order
      • Doesn't use a lot of memory
    • Cons
      • Inefficient
      • Does not cope well with a large list of items
  2. MERGE SORT

    • Split the list in half and carry on until there is only one item in each sub-list
      • Merge them and order until you've merged all sub-lists together
    • Pros
      • More efficient than bubble
      • Quicker than bubble
      • Consistent running time
    • Cons
      • Slower for short lists
      • Uses more memory

Información

Descripción
Mapa Mental sobre SORTING ALGORITHMS, creado por Gurleen Bansal el 17/01/2019.
Creado por
Gurleen Bansal
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?