GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

SORTING ALGORITHMS

Gurleen Bansal Englisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am SORTING ALGORITHMS, erstellt von Gurleen Bansal am 17/01/2019.
Erstellt von
Gurleen Bansal
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck