Chapter 3 Flashcards

1
Q

What is the difference between a directed and undirected graph?

A

The order of the nodes being connected matters for directed. i.e an edge from u to v exists but not v to u

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

What is the definition of a path for an undirected graph?

A

we define a path in an undirected graph G=(V,E) to be a sequence P of nodes v1,v2,…,vk−1,vk with the property that each consecutive pair vi , vi+1 is joined by an edge in G.

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

What is a simple path?

A

A path is called simple if all its vertices are distinct from oneanother.

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

What is a cycle?

A

A path with more than 2 nodes where all nodes are distinct except for the first and last node which are the same. i.e it cycles back.

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

What does it mean for an undirected graph to be connected?

A

We say that an undirected graph is connected if, for every pair of nodes u and v, there is a path from u to v.

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

What does it mean for a directed graph to be strongly connected?

A

We say that a directed graph is strongly connected if, for every two nodes u and v, there is a path from u to v and a path from v to u.

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

define distance between nodes u and v

A

minimum number of edges between u and v

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

when is an undirected graph considered a tree?

A

Trees We say that an undirected graph is a tree if it is connected and does not contain a cycle.

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