Exercise c. Strict matching
Consider the following generalization of the maximum matching problem, which we call
Strict-Matching. Recall that a matching in an undirected graph G = (V, E) is a set
of edges such that no distinct pair of edges {a, b} and {c, d} have endpoints that are
equal: {a, b} ∩ {c, d} = ∅. Say that a strict matching is matching with the property
that no pair of distinct edges have endpoints that are connected by an edge: {a, c} ̸∈ E,
{a, d} ̸∈ E, {b, c} ̸∈ E, and {b, d} ̸∈ E. (Since a strict matching is also a matching, we
also require {a, b} ∩ {c, d} = ∅.) The problem Strict-Matching is then given a graph
G and an integer k, does G contain a strict matching with at least k edges.
Prove that Strict-Matching is NP-complete.
Answer:
The proof that Strict-Matching is NP-complete is shown through a reduction from the well-known NP-complete problem Maximum Independent Set (MIS), which is defined as follows: Given an undirected graph G = (V, E) and an integer k, does G contain an independent set with at least k nodes, where an independent set is a set of vertices such that no two vertices are connected by an edge.
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps
- The problem Monochomatic-Subgraph-Avoidance takes as input two undirected graphs Fand G. It asks where F can be colored with two colors (say, red and blue) that does not containa monochomatic (all-red or all-blue) G as a subgraph. (Note that when G has two nodes and oneedge between them, this is equivalent to the 2-coloring problem of asking whether F can be coloredso that no neighbors have the same color.)Next, show that Monochomatic-Subgraph-Avoidance is contained in one of the classes inthe second level of the polynomial hierarchy. ALso provide an expression using quantifiersarrow_forwardIn the decision version of the Clique problem you are given a non-empty graph G = (V,E) and a positive integer k and asked whether G has a complete subgraph (or clique) of size k (i.e., k vertices that induce a complete subgraph). Give the pseudocode of a recursive backtracking algorithm for the problem, and analyze your algorithm by providing a worst-case recurrence. Can you guarantee a worst-case running time in O(1.466^n)? Prove your answerarrow_forwardPlease show written work with answer!! An independent set in a graph is a set of vertices no two of which are adjacent to each other. A clique is a complete subgraph of a given graph. This means that there is an edge between any two nodes in the subgraph. The maximal clique is the complete subgraph of a given graph which contains the maximum number of nodes. We know that independent set is a NP complete problem. Transform the independent set to max clique (in polynomial time) to show that Max Clique is also NParrow_forward
- True or False (If your answer to the question is "False", explain why, and provide correction when possible). (a) Let h(n) be the heuristics for the node n, h(m) be the heuristics for the node m, d(m,n) be the actual minimal cost from node m to n in a graph. A* satisfies the monotone restriction iff d(m,n) <= |h(n)-h(m)|. (b) If an A* heuristics is admissible then it satisfies the monotone restriction. (c) Best-first search guarantees optimality in its returned solution. (d) Least-cost-first search guarantees optimality in its returned solution. (e) If all edges are with unit cost, then Breadth-first search guarantees optimality in its returned solution.arrow_forwardThe problem Monochomatic-Subgraph-Avoidance takes as input two undirected graphs Fand G. It asks where F can be colored with two colors (say, red and blue) that does not containa monochomatic (all-red or all-blue) G as a subgraph. (Note that when G has two nodes and oneedge between them, this is equivalent to the 2-coloring problem of asking whether F can be coloredso that no neighbors have the same color.)Next, show that Monochomatic-Subgraph-Avoidance is contained in one of the classes inthe second level of the polynomial hierarchy. ALso provide an expression using qualifiers. YOU ALSO NEED TO PROVIDE A CLEAR EXPRESSION USING THE QUALIFIERS.PLEASE GIVE CLEAR EXPLAINATION.arrow_forwardYou are given a weighted tree T.(As a reminder, a tree T is a graph that is connected and contains no cycle.) Each node of the tree T has a weight, denoted by w(v). You want to select a subset of tree nodes, such that weight of the selected nodes is maximized, and if a node is selected, then none of its neighbors are selected.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education