Week 6: Graphs Flashcards

1
Q

What is a graph?

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

What are the following:

Directed edge

Undirected edge

Directed graph or digraph

Undirected graph

Mixed graph

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

What are the following:

End vertices (or endpoints) of an edge

Edges incident on a vertex

Adjacent vertices

Degree of a vertex

PArallel edges

Self-loop

Simple graph

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

What are the following:

path

simple path

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

What are the following:

Cycle

Simple cycle

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

What are the properties of a graph?

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

What is a complete graph/clique?

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

What is a connected graph?

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

What is a tree?

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

What is a forest?

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

What is a subgraph?

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

What is a connected component?

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

Example of connected components:

A

Answer: 3

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

What is the Edge List DS for storing a graph?

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

What is the Adjacency List DS for storing a graph?

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

What is the Adjacency Matrix DS for storing a graph?

A
17
Q

What is the performance of the following three DSs for graphs:

Edge List

Adjacency List

Adjacency Matrix

A