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

Fichas

Computing Paper 2: Algorithms (2.3.3/2.3.4/2.3.5)

Qashrina Collier Computing A level Inglés 8 fichas

Computing Paper 2: Algorithms (2.3.3/2.3.4/2.3.5)

Fichas del conjunto (8)

  1. 1Bubble sortMakes comparisons & swaps between pairs of elements.
    O(n^2) = slow
    Bubble sort
  2. 2Insertion sortStarts at 2nd element and compares it to the left. Performs consecutive swaps.
    O(n^2)
    Insertion sort
  3. 3Merge sortEXAMPLE: worst time O (n logn)
    7, 4, 2, 6
    7,4. 2,6
    7, 4, 2, 6
    4, 7, 2, 6
    2, 4, 6, 7
  4. 4Quick sortSelects pivot and divides input around it. Elements larger than pivot placed to right. O(n^2).
    9,4,7,8,6,3,1,5,2
    Quick sort
  5. 5Searching algorithms: Linear searchIterates through whole list of items, start to end to find item.
  6. 6Searching algorithms: Binary searchCalculates midpoint of ordered list. If item needed lower than midpoint second half of list can be ignored. If higher then first half can be ignored. This process continues until item found.
  7. 7Dijkstra's algorithmVertex, shortest distance from node, previous vertex.
    Finds best path for algorithm.
  8. 8A* star algorithmFinds path by using a heuristic approach (used to provide 'good enough' solutions to complex problems where finding perfect solution would take too much time).

Información

Descripción
Sorting algorithms Path-finding algorithms Searching algorithms
Creado por
Qashrina Collier · may 2021
Actualizado
10 may 2021
Visitas
2
Valoración

Más sobre Searching and Sorting Algorithms

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?