Graph Theoruy Flashcards

1
Q

Define a simple undirected graph

A

A non empty set V of vertices, nodes, and a set of undirected edges. Every edge has two distinct vertices, u and v, as endpoints.

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

Define a directed graph

A

A non empty set V of vertices and a set of directed edges. Each directed edge has a start vertices u and an end vertex v.

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

What is the degree of a vertex?

A

The number of edges connected to it

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

What is the neighbourhood of a vertex?

A

The number of vertices connected to a vertex

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

Handshaking Theorem

A

2m = SUM( Degrees of all the vertices )

Where m is the number of edges

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

Define a complete graph

A

All possible edges exist (Complete graph with n nodes is denoted by Kn)

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

Define a bipartite graph

A

Two distinct sets of nodes where no two nodes in the same set are directly connected by an edge

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

Define a path

A

A series of nodes in a graph

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

Define a cycle

A

A series of nodes in a graph with vertices v1 v2 … vk

Where v1 = vk and k > 2

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

Define a tree

A

An undirected graph without a cycle

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

Undirected graph theorem

A
THEOREM. Let G be an undirected graph on n nodes. Any two
of the following statements
I G is connected;
I G does not contain a cycle;
I G has n − 1 edges;
imply the third.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an M-ary tree?

A

A rooted tree is called an m-ary tree if every node has at most m children

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

Minimum spanning tree

A

A tree which connects all the nodes in a graph with the shortest weights possible

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

Prim’s algorithm

A

Choose any vertex v1. Let T = {v1}. E = {}.
2. Choose the neighbour to v1 of least weight (nearest
neighbour) v2 and add to T. Add the edge from v1 to v2 to E.
3. Next add the nearest neighbour to T = {v1, v2}. This must
not create a cycle.
4. Stop when all vertices have been reached (and so
|E| = V − 1).

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