This question is arbitrary for any graph G that has a Hamilton cycle.
A. Is G a strongly connected component:
A strongly connected component is a graph in which there exists a path between any two pairs of vertices. To check whether a graph is strongly connected or not, we have to consider all the pairs of the graph and check whether a cycle exists between them or not. If yes, then G is a strongly connected component.
Time Complexity :
number of pairs = v(v-1)/2
time to check if a path exists between two vertices = O(v+e)
hence the total time complexity is O(V3)
Hence it is not NP-complete.
B. Is G not strongly connected :
The same algorithm above works for checking whether a graph is not strongly connected or not. The only thing that changes is that if there is at least one edge that doesn't have any path between them, then the graph is not strongly connected.
C. At least G1 or G2 has a hamiltonian cycle
Given a graph G and an integer k, construct a graph G' such that G has a vertex cover and a Hamiltonian cycle.
With the construction, any graph with a vertex cover can be used to make a graph with a Hamiltonian Cycle graph. Since creating such a graph can be done under polynomial time, simply replace edges with widgets and make proper connections, we have a reduction from Vertex Cover to Hamiltonian Cycle. This means that finding whether a graph has a Hamiltonian Cycle or not is NP-Hard. As we have seen earlier it’s also in NP, therefore, Hamiltonian Cycle is an NP-Complete Problem
Since this takes O(n.2n) time complexity where n is the number of vertices.
D. exactly one of G1 and G2 has a hamiltonian cycle:
We have to perform the same algorithm (as third one) for both the graphs. Hence the given problem is NP-Complete problem
Note that a Hamilton cycle is a cycle which goes through every vertex exactly once. Show...
Given an undirected connected graph so that every edge belongs to at least one simple cycle (a cycle is simple if be vertex appears more than once). Show that we can give a direction to every edge so that the graph will be strongly connected. Please write time complexity.
Question 1: Given an undirected connected graph so that every edge belongs to at least one simple cycle (a cycle is simple if be vertex appears more than once). Show that we can give a direction to every edge so that the graph will be strongly connected. Question 2: Given a graph G(V, E) a set I is an independent set if for every uv el, u #v, uv & E. A Matching is a collection of edges {ei} so...
For n ? {4,6,8}, give graphs that show that condition "every
vertex of G has degree at least
" cannot be relaxed to "every vertex of G has degree at least
". (Note: To guarantee a 3-cycle, we only really need one vertex to
have degree greater than
.)
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:...
5. HC: Graph G has circuit that begins and ends at v1, visiting each vertex once. HP: Graph G has a path that visits each vertex exactly once (begin anywhere, end anywhere) a. Give yes and no instances of HC and HP b. Prove or disprove: the following is a polynomial reduction from HC to HP Given an undirected graph G=(V,E), create a new graph G’ by adding one new vertex s and |V| new edges, connecting...
3. Let G be an undirected graph in which the degree of every vertex is at least k. Show that there exist two vertices s and t with at least k edge-disjoint paths between them.
3. Let G be an undirected graph in which the degree of every vertex is at least k. Show that there exist two vertices s and t with at least k edge-disjoint paths between them.
Math 1053 Contemporary Mathematics (2) Katherine Ruiz: Chapter 6 Quiz mis Question: 1 pt 4 of 13 or the graph to the right, complete parts (a) through (d) a) Find a Hamilton path that starts at A and ends at H (Use a comma to separate answers as needed) Find a Hamilton path that starts at Hand ends at A (Use a comma to separate answers as needed =) Explain why the graph has no Hamilton path that starts at...
3. Given graph G = (V,E), prove that the following statements are equivalent. [Note: the following statements are equivalent definitions of a "tree graph".] 1) There exist exactly one path between any of two vertices u, v EV in the graph G 2) Graph G is connected and does not contain any cycles. 3) Graph G does not contain any cycles, and a cycle is formed if any edge (u, v) E E is added to G
3. Given graph...
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...
Find the logical mistakes in these proofs, and explain why the mistakes you've identified cause problems in their arguments. (b)Claim: Suppose that G is a graph on n 3 vertices in which the degree of every vertex is exactly 2. Then G is a cycle Proof. We proceed by induction on n, the number of vertices in G. Our base case is simple: for n - 3, the only graph with 3 vertices in which all vertices have degree 2...