• Nem Talált Eredményt

Combinatorial Optimization: Retake of the first midterm exam 2017.04.20.

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Combinatorial Optimization: Retake of the first midterm exam 2017.04.20."

Copied!
1
0
0

Teljes szövegt

(1)

Combinatorial Optimization:

Retake of the first midterm exam 2017.04.20.

Please indicate your name and Neptun code on top of your test! Every problem is worth 10 points, the minimum number of points required for passing is 24. You can work for 90 minutes. You are not allowed to use written or printed materials, a calculator or any other aid when writing the test. Please make sure to justify your answers - unjustified results are worth no points. I wish you all the success!

1. Prove that the Hamiltonian cycle problem is in NP. (Hamiltonian cycle problem: Input: G graph.

Output: True if and only if there exists a cycle in G which goes through each vertices exactly once.)

2. Give a polynomial reduction from the 4-coloring problem to the 5-coloring problem. (k-coloring problem: Input: G graph. Output: True if and only if there exists a coloring of the nodes of G with k different colors, such that no two vertices sharing the same edge have the same color.)

3. Find a maximum matching in the graph represented by this matrix:

This graph has 16 vertices, a1, a2,...a8,b1, b2,...b8, and there is an edge between ai and bj if and only if the j-th element of the i-th row is 1.

(Use the alternating path method)

4. Run the Kruskal method to find a minimum spanning tree in the graph on the left. (Indicate the order of the decisions)

5. Find a maximum flow and a minimum cut with the Ford-Fulkerson method in the graph on the right. (It starts from s and the target is t)

6. Define NP-completeness.

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

If G + H is Eulerian and G is acyclic, then every solution of the disjoint path problem uses every edge of

If the graph G has the property that removing any k edges of G, the resulting graph still contains (not necessarily spans) a subgraph isomorphic with H, then we say that G is k

If G is a regular multicolored graph property that is closed un- der edge addition, and if the edge-deletion minimal graphs in G have bounded treewidth, then the movement problem can

If G is a regular multicolored graph property that is closed under edge addition, and if the edge-deletion minimal graphs in G have bounded treewidth, then the movement problem can

Edge Clique Cover : Given a graph G and an integer k, cover the edges of G with at most k cliques.. (the cliques need not be edge disjoint) Equivalently: can G be represented as

Given a directed graph G, a set of k terminals and an integer p, the D IRECTED V ERTEX M ULTIWAY C UT problem asks if there is a set S of at most p (nonterminal) vertices whose

Edge Clique Cover : Given a graph G and an integer k, cover the edges of G with at most k cliques. (the cliques need not be edge disjoint) Equivalently: can G be represented as

Edge Clique Cover : Given a graph G and an integer k, cover the edges of G with at most k cliques.. (the cliques need not be edge disjoint) Equivalently: can G be represented as