• Nem Talált Eredményt

Combinatorial Optimization: First midterm exam 2018.03.22.

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Combinatorial Optimization: First midterm exam 2018.03.22."

Copied!
1
0
0

Teljes szövegt

(1)

Combinatorial Optimization: First midterm exam 2018.03.22.

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 following problem is in NP: Input: S; where S={x1,x2,..., xn} is a set of positive integers. Output: True if there exist I and J two different subsets of {1, 2,..., n} , so that

i∈I

x

i

= ∑

j∈J

x

j

2. Assume that A is a decision problem in NP, and B is an NP complete decision problem. Show that if there exists a polynomial time algorithm for solving B, then there exists an other also polynomial method for solving A.

3. Run the BFS method in the graph on the right from C to decide whether the graph is binary or not. (Indicate the levels of the tree)

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. Solve the following knapsack problem with dynamic programming: Size = 6, Objects (weight-value):

2-3, 4-7, 5-9, 1-1, 3-6, 2-5

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

Beyond the concept of sustainability, there are different green approaches that justify the necessity of public participation in en- vironmental decision making and different models

[26] proved that the decision problem related to finding the maximum size of weakly stable matching for a given instance of stable marriage problem with ties is NP-complete

We have proved that computing a geometric minimum-dilation graph on a given set of points in the plane, using not more than a given number of edges, is an NP-hard problem, no matter

The minimum sum preemptive multicoloring problem is NP- complete on binary trees when the value of the demand function is polynomially

(It does require L to be a decision problem though, whereas also optimization problems can be NP-hard. Nevertheless, most NP-hard optimization problems can be turned easily into

What is the largest possible weight of this edge if we know that the obtained edge weighted graph has a spanning tree whose weight is not bigger than 24.. (The other edge weights

proved that this problem is NP-hard in the classical housing market model, while Bir´ o and Cechl´ arov´ a [7] considered a special model where agents care first about the house

If lists are weakly ordered and complete, the rooms are of capacity 3, and the best roommate counts, then computing a POA is at least as hard as the NP-complete DIRECTED TRIANGLE