Question: we have discussed a Greedy - Based algorithm for weighted Vertex Cover Problem ( VCP ) . Below is a formal statement. 2 Algorithm 2
we have discussed a GreedyBased algorithm for weighted Vertex Cover Problem
VCP Below is a formal statement.
Algorithm : ALGB
Input: An undirected graph G V E and a cost function cv with cv for all v in V
Output: A vertex cover of G with the minimum cost.
S is the vertex cover we aim to output.
Initialization: S ;
while E do
Select a node v such that tau v : cvEv gets minimized among all v in V Break ties
arbitrarily.
Update E E Ev S S cup v V V v
end
Return S
In the following, we aim to analyze the performance of ALGB Consider the instance below.
u u u u u u
v
Figure : An instance of unweighted vertex cover problem for Question
For the graph shown in Figure : We have a bipartite graph G U cup V E such that U u i
i and V v j j For simplicity, we use i and j to index u in U and v in V respectively.
The cost cu cv for all u in U and v in V The set of edges E is constructed as follows. For
the first group of six nodes on V Vv v connect each with a node u v; for the second
group of V Vv v connect each with two nodes in U such that each v in V has a disjoint set
of neighbors; similarly, for the third group, Vv v each is connected to a disjoint set of three
nodes in U For V V and V each group consists of one single node v of V which is connected to the first
nodes of U respectively.
What is the cost of the output vertex cover when applying ALGB to the instance as described above?
What is the cost of an optimal vertex cover? Note that there may be ties to break when running ALGB
and different breakingtie choices may lead to different results. By default, we evaluate the performance of
ALGB based on the worst possible breakingtie choices of ALGB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
