Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a.Show that there is a graph such that Kruskals algorithm can find minimum spanning tree edges in the same order that Prims algorithm does. b.Let

a.Show that there is a graph such that Kruskals algorithm can find minimum spanning tree edges in the same order that Prims algorithm does.

b.Let us consider Boruvka/Sollins algorithm as shown in class. Note that Boruvka/Sollin algo- rithm selects several edges for inclusion in T at each stage. It terminates when only one tree at the end of a stage or no edges to be selected.

Algorithm 1 One Step of Boruvka/Sollins Algorithm 1: Find minimum cost edge incident to every vertex.

2: Add to tree T. 3: Remove cycle if any. 4: Compress and clean graph (eliminate multiple edges).

  1. (a) Suppose that we run k phases of Algorithm 1, using the output G produced by one phase as the input G to the next phase and accumulating edges in T. Argue that the overall running time of the k phases is O(kE).

  2. (b) Suppose that after running k phases of Algorithm 1, as in part (4a), we run Prims algorithm by calling MST-PRIM(G, c, r), where G, with weight attribute c, is returned by the last phase and r is any vertex in G(V ). Show how to pick k so that the overall running time is O(E lg lg V ). Argue that your choice of k minimizes the overall asymptotic running time.

  3. (c) For what values of |E| (in terms of |V |) does the above scheme asymptotically beat Prims algo- rithm without preprocessing?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions