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

Mapa mental

Algorithms

Ifsah Hussain Inglés

Contenido del mapa

Algorithms

  1. Abstraction

    • Focussing on what is important and relevant in problem solving and removing unnecessary details
  2. Search algorithms

    • Binary search
      • Splits the array in half for middle item. If the desired item is below the middle item, eliminate that half and repeat the process with what is left of the array.
        • Cons: Dataset must be sorted
        • Pros: More efficient than linear search
    • Linear search
      • Each item is checked in order and once the desired item is found, it is returned.
        • Pros: Easy to implement.
        • Cons: Slow on a big array
  3. Pseudocode

    • A way to write out algorithms using code like statements that are used to plan algorithms.
  4. Decomposition

    • Breaking a more complex problem into smaller more manageable sub-problems.
  5. Sort algorithms

    • Bubble sort
      • Compare the first two items in a data set and if they are in the wrong order, swap them. Repeat through all items and repeat until an iteration (reach the end of the data set) goes by where there are no swaps. This final pass shows that the list has been correctly ordered
        • Pros: Require little space and easy to implement.
        • Cons: Not very efficient.
    • Insertion sort
      • Compare the second item to the first and swap if needed. Compare the next to all items on its left and fit where needed, continue this with the rest of the array until sorted.
        • Cons: Not very efficient.
        • Pros: Little memory used and easy to implement.
    • Merge sort
      • Split lists into list of one size. Merge each pair of sublists. Continue merging until there is only one list.
        • Pros: Very efficient.
        • Cons: Can be slower for smaller lists and require additional memory.
  6. Flow diagrams

    • Used to visually represent the steps that make up an algorithm.

Información

Descripción
Mapa Mental sobre Algorithms, creado por Ifsah Hussain el 27/02/2019.
Creado por
Ifsah Hussain
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?