Course Solutions Uncategorized (Solved) : Let G V E Undirected Non Weighted Graph Say Vertex V See Edge V Endpoint Edge Say Set S V Q26160403 . . . .

(Solved) : Let G V E Undirected Non Weighted Graph Say Vertex V See Edge V Endpoint Edge Say Set S V Q26160403 . . . .

 

Let G = (V, E) be an undirected non weighted graph. Say that avertex v can “see” an edge if v is an endpoint of that edge. Saythat a set S ⊆ V is “all-seeing” if every edge e ∈ E is seen by atleast one vertex in S. In this problem, we will try to greedilyconstruct the smallest all-seeing set possible. Consider thefollowing greedy algorithm to find an all-seeing subset:

findAllSeeingSubset (G): s={} while G contains edges: choose an edge e = (u,v) in G S.add (u) S.add (v remove u and all of its adjacent edges from G remove v and all of its adjacent edges from G return S

(a)

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post