Question: Question 5 . ( Densest Subgraph ) ( 2 0 pts ) . Consider the graph G represented in Figure 2 . . Recall the

Question 5.(Densest Subgraph)(20 pts). Consider the graph G represented in Figure 2.. Recall the greedy algorithm for computing a dense subgraph: at each step one node with minimum degree is removed; at the end we output the subgraph H=(VH,EH) with maximum density =|EH||VH| among all considered subgraphs.
a)(6pts) Run the greedy algorithm on G and report the subgraph computed by such an algorithm. If there are two nodes with the same degree, you should remove the one with a smaller index. E.g. between 8 and 9 you should remove 8.
b)(6pts) What is the densest subgraph in G(i.e. it maximizes |EHH||VHH|)?
c)(8pts) Change the first node to be removed so that greedy computes a densest subgraph. You can only choose the first node to be deleted, the rest of the algorithm is unchanged. This applies only in the case when the densest subgraph was not found already in a).
 Question 5.(Densest Subgraph)(20 pts). Consider the graph G represented in Figure

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!