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

Fichas

4.3

James John Inglés 7 fichas

Fichas del conjunto (7)

  1. 1Breadth firstUseful for finding shortest distance path in an unweighted graph
  2. 2Depth firstUseful for navigating a maze - It will find a route quickly but maybe not the fastest route
  3. 3DjikstrasFinds shortest path on a weighted graph
    an extension of a breadth first traversal
    pathfinding across a mesh network - GPS
  4. 4Linear searchStart with first item. Check it. If its not it, move on. Ends when item is found or entire list is checked.
    Suitable for unordered lists
    Time complexity O(n)
    Slow to search big lists
    Algorithmically simple
  5. 5Binary SearchList must be ordered either alphabetically or numerically. Find midpoint. Determine whether the wanted item is above or below this point. Discard the half we dont need. Repeat. Ends when item is found or all of list is eliminated.
    Time complexity of O(log(n)) - double list only 1 more step
    Very fast on large data sets
  6. 6Binary search treeO(log(n)) and can be used on unsorted data
    Data is entered into a binary tree
    data is compared to the root and then placed in the left or right subtree.
    This is done recursively until all data is in the tree.
  7. 7Time complexityLinear - O(n)
    Binary - O(log(n))
    Bubble - O(n^2)
    Merge - O(nlog(n))

Información

Descripción
Fichas sobre 4.3, creado por James John el 16/04/2022.
Creado por
James John
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?