

4.32 Show that there is only one positive integer k such that no graph contains exactly...
The input to SPANNINGTREEWITHKLEAVES is a graph G and an integer K. The question asked by SPAN NINGTREEWITHKLEAVES is whether G has a spanning tree with exactly K leaves. Problem 3. Show that SPANNINGTREEWITIIKLEAVES is NP-complete. Hint: There is a simple polynomial time reduction from HAMILTONIANPATH to SPANNINGTREEWITHKLEAVES.
COMP Discrete Structures: Please answer completely and
clearly.
(3).
(5).
x) (4 points) If k is a positive integer, a k-coloring of a graph G is an assignment of one of k possible colors to each of the vertices/edges of G so that adjacent vertices/edges have different colors. Draw pictures of each of the following (a) A 4-coloring of the edges of the Petersen graph. (b) A 3-coloring of the vertices of the Petersen graph. (e) A 2-coloring (d) A...
EXERCISE 1.28. Show that for every positive integer k, there exist k consecutive composite integers. Thus, there are arbitrarily large gaps between primes. EXERCISE 1.12. Show that two integers are relatively prime if and only if there is no one prime that divides both of them.
Question 4t Write the correct integer values in the boxes. For this question, working is not required and will not be marked. This question is about the number of spanning trees of a graph. In a lecture we used complementary counting to calculate that the graph depicted at left has exactly eight spanning trees. By adding just one more edge to this graph we arrive at the complete graph K depicted at right. A spanning tree has -1 3 edges...
1) Consider the clique problem: given a graph G (V, E) and a positive integer k, determine whether the graph contains a clique of size k, i.e., a set of k vertices S of V such that each pair of vertices of S are neighbours to each other. Design an exhaustive-search algorithm for this problem. Compute also the time complexity of your algorithm.
SPANNING TREE AND GRAPH C++ (use explanation and visualization if needed) and also provide an algorithm Do not need to provide code or a description of the algorithm in that case. Let G be a simple, undirected graph with positive integer edge weights. Suppose we want to find the maximum spanning tree of G. That is, of all spanning trees of G, we want the one with the highest total edge weight. If there are multiple, any one of them...
Let G be a graph, and let T, T' be spanning trees in G. Show that if e is an edge in T, then there is an edge e in T' such that the graph obtained by adding the edge e, to T-e is again a spanning tree in G.
Let G be a graph, and let T, T' be spanning trees in G. Show that if e is an edge in T, then there is an edge e in...
(28) A unicycle is a simple graph that contains exactly one cycle. Let un be the number of unicycles on vertex set In). Find a formula for un Your formula may contain one summation sign
(28) A unicycle is a simple graph that contains exactly one cycle. Let un be the number of unicycles on vertex set In). Find a formula for un Your formula may contain one summation sign
Let n be a positive integer. Classify the languages R = { (M) | M is a TM and L(M) contains exactly n strings} S = { (M) | M is a TM and L(M) contains more than n strings} as (a) decidable (b) Turing-recognizable but not co-Turing recognizable (c) co-Turing recognizable but not Turing-recognizable (d) neither Turing nor co-Turing recognizable
15. Suppose that X ~ B(mp). Show that, for any positive integer k, the parameter θ = 1/pk is not estimable.