grafos Flashcards
BFS (Breadth-First Search)
explorar vecinos depues ir mas profundo. first in first out. queue.
DFS (Depth-First Search)
explorar lo mas profundo posible y despues ir volviendo. last in first out. stack o recursion
DFS advantages and dis
memory efficient and simple
completeness (loops)
BFS advantages and dis
shortest path (unweighted) and completeness (solution exists then it will find)
memory usage and complexity
Dijkstra
algorithm that is used to find the shortest path between 2 nodes in a weighted graph
definicion
nodos = {a,b,c}
aristas = {(a,b),(a,c)}
adyacentes
Vi conecta con Vj si E(Vi,Vj)
camino
{(Vi,…),…,(…,Vj)}
camino minimo
camino de Vi a Vj mas chico
loop
arista (Vi,Vi)
ciclo
{(Vi,…),…,(…,Vi)}
grado saliente
cant de aristan que salen del nodo
grado entrante
cant de aristan que entran del nodo
tamanio del grafo
|nodos|
diametro del grafo
maximo de los caminos minimos