Question: 2) Let G ME) be an undirected Graph. A node cover of G is a subset U of the vertex set V such that every

2) Let G ME) be an undirected Graph. A node cover of G is a subset U of the vertex set V such that every edge in E is incident to at least one vertex in U. A minimum node cover MNC) is one with the lowest number of vertices. For example {1,3,5,6is a node cover for the following graph, but 2,3,5} is a min node cover Consider the following Greedy algorithm for this problem: Algorithm NodeCover (V,E) Uempty While E empty Find a vertex v of maximum degree v=v-v E = E - la.x} for all {.} such that x = v or y = v a) b) Give a graph example (other than the above graph) where this algorithm generates a MNC Give a graph counter-example to prove that this algorithm does not always generate the MNC
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
