grafos Flashcards

1
Q

BFS (Breadth-First Search)

A

explorar vecinos depues ir mas profundo. first in first out. queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DFS (Depth-First Search)

A

explorar lo mas profundo posible y despues ir volviendo. last in first out. stack o recursion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DFS advantages and dis

A

memory efficient and simple
completeness (loops)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

BFS advantages and dis

A

shortest path (unweighted) and completeness (solution exists then it will find)
memory usage and complexity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Dijkstra

A

algorithm that is used to find the shortest path between 2 nodes in a weighted graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

definicion

A

nodos = {a,b,c}
aristas = {(a,b),(a,c)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

adyacentes

A

Vi conecta con Vj si E(Vi,Vj)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

camino

A

{(Vi,…),…,(…,Vj)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

camino minimo

A

camino de Vi a Vj mas chico

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

loop

A

arista (Vi,Vi)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

ciclo

A

{(Vi,…),…,(…,Vi)}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

grado saliente

A

cant de aristan que salen del nodo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

grado entrante

A

cant de aristan que entran del nodo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

tamanio del grafo

A

|nodos|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

diametro del grafo

A

maximo de los caminos minimos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

conexo

A

todos los nodos estan conectados (siempre hay camino de un nodo a otros)

17
Q

regulares

A

todos los nodos tienen el mismo grado

18
Q

completos

A

E(Vi,Vj) para todo Vi,Vj

19
Q

pesados

A

las aristas tienen peso