Graph Problems Flashcards

1
Q

What is the Clique problem?

A

Where an undirected graph and a non negative integer k is given, and the algorithm returns yes if the graph contains a clique of size k. (A set of nodes so that every node is connected to every other node) ; no otherwise

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

What is the time complexity for the clique problem with a graph with n nodes, if a brute force algorithm is used

A

We can check all potential cliques of size up to k in time O(n^(k+2) k^2).

For k=O(1) we have O( n^(k+2) )

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

What is a subset of the clique problem that can be solved in polynomial time?

A

Planar graphs. This is because they cannot have cliques of size 5 or larger.

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

What is the graph colouring problem?

A

Where an undirected graph and a non negative integer k is given, and the algorithm returns yes is the graph can be coloured with k colours so that no pair of adjacent nodes have the same colour; no otherwise

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

What is a bi-partite graph?

A

A graph were there are two sets of nodes, and none of the nodes in the same set are directly connected.

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

What cases of the graph colouring problem are in P?

A

Where k is not equal to 3.

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