Graph Problems Flashcards
What is the Clique problem?
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
What is the time complexity for the clique problem with a graph with n nodes, if a brute force algorithm is used
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) )
What is a subset of the clique problem that can be solved in polynomial time?
Planar graphs. This is because they cannot have cliques of size 5 or larger.
What is the graph colouring problem?
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
What is a bi-partite graph?
A graph were there are two sets of nodes, and none of the nodes in the same set are directly connected.
What cases of the graph colouring problem are in P?
Where k is not equal to 3.