Problem 3: Bounded-Degree Spanning Trees (10 points). Recall the minimum spanning tree problem studied in class. We define a variant of the problem in which we are no longer concerned with the total cost of the spanning tree, but rather with the maximum degree of any vertex in the tree. Formally, given an undirected graph G = (V,E) and T ⊆ E, we say T is a k-degree spanning tree of G if T is a spanning tree of G, and moreover each v ∈ V has degree at most k in T (i.e., v has at most k neighbors in T).
Show that for every fixed constant k ≥ 2, deciding whether G has a k-degree spanning tree is NP-complete. You may reduce from the NP-complete undirected Hamiltonian path problem, defined next. For an undirected graph G = (V, E), we say a path P in G is a Hamiltonian path if it visits each vertex v ∈ V exactly once. The undirected Hamiltonian path problem asks whether a given undirected graph G has a Hamiltonian path.
2
Note. You have already seen the directed variant of the Hamiltonian path problem in the book. Both variants are NP-complete.
Hint. You might want to start with the special case of k = 2.
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
Problem 3: Bounded-Degree Spanning Trees (10 points). Recall the minimum spanning tree problem studied in class....
Note: For the following problems, you can assume that INDEPENDENT SET, VERTEX COVER, 3-SAT, HAMILTONIAN PATH, and GRAPH COLORING are NP-complete. You, of course, may look up the defini- tions of the above problems online. 5. The LONGEST PATH problem asks, given an undirected graph G (V, E), and a positive integer k , does G contain a simple path (a path visiting no vertex more than once) with k or more edges? Prove that LONGEST PATH is NP-complete. Note:...
Prove this is NP Complete, or it is in P. This problem is a variant of UNDIRECTED HAMILTON PATH in bounded-degree graphs. The language in question is the set of all triples (G, s, t) for which G is an undirected graph with maximum degree at most 2 containing a Hamilton path from node s to node t.
Problem 3: Suppose you are given an undirected graph G and a specified starting node s and ending node t. The HaMILTONIAN PATH problem asks whether G contains a path beginning at s and ending at t that touches every node exactly once. The HAMILTONIAN CYCLE problem asks whether con- tains a cycle that touches every node exactly once (cycles don't have starting or ending points, so s and t are not used here) Assume that HaMIlTonian CYCLe is NP-Complete....
C++ programing question22 Minimum spanning tree Time limit: 1 second Problem Description For a connected undirected graph G = (V, E), edge e corresponds to a weight w, a minimum weight spaning tree can be found on the graph. Into trees. Input file format At the beginning, there will be a positive integer T, which means that there will be T input data. The first line of each input has two positive integers n,m, representing n points and m edges...
Hi,. the question is below: Help if you can.. Here is some background information/ an example: 9. Let k-Color be the following problem. Input: An undirected graph G. Question: Can the vertices of G be colored using k distinct colors, so that every pair of adjacent vertices are colored differently? Suppose that you were given a polynomial time algorithm for (k + 1)-Color. Use it to give a polynomial algorithm for k-Color. This means that you need to provide a...
Write down true (T) or false (F) for each statement. Statements are shown below If a graph with n vertices is connected, then it must have at least n − 1 edges. If a graph with n vertices has at least n − 1 edges, then it must be connected. If a simple undirected graph with n vertices has at least n edges, then it must contain a cycle. If a graph with n vertices contain a cycle, then it...
3, (30 points) Given a directed graph G - N. E), each edge eEhas weight We, 3, (30 points) Given a directed graph G (V, E), each edgee which can be positive or negative. The zero weight cycle problem is that whether exists a simple cycle (each vertex passes at most once) to make the sum of the weights of each edge in G is exactly equal to 0. Prove that the problem is NP complete. 3, (30 points) Given...
Note that things like searching for solutions online is still prohibited In order to prove a problem is NP-complete, you must: . Show that the problem is in NP. .A reduction in the correct direction. Reductions in the wrong direction will considerably reduce the credit you can get for a problem . An explanation for why your reduction has no false positives. An explanation for why your reduction has no false negatives. You may assume that any problem shown to...
The physical layout of a VLSI circuit is tightly linked to overall circuit performance; moreover, determining the wiring layout of a circuit is one of the most difficult steps in the VLSI chip design process. In particular, you are given a set of components that must be connected by wires, preferably as cheaply as possible. Obviously you will use a tree to connect up your components, but unlike the minimum spanning tree problem, you are permitted to construct or select...
Say that we have an undirected graph G(V, E) and a pair of vertices s, t and a vertex v that we call a a desired middle vertex . We wish to find out if there exists a simple path (every vertex appears at most once) from s to t that goes via v. Create a flow network by making v a source. Add a new vertex Z as a sink. Join s, t with two directed edges of capacity...