Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Find a spanning tree with minimal total weight containing the edges \(\left\{ {{\bf{e, i}}} \right\}\) and \(\left\{ {{\bf{g, k}}} \right\}\) in the weighted graph in Figure \(3\).

Short Answer

Expert verified

Answers could vary.

A possible such spanning tree contains the edges

\(\left( {{\bf{a, b}}} \right){\bf{,}}\left( {{\bf{a, e}}} \right){\bf{,}}\left( {{\bf{b, c}}} \right){\bf{,}}\left( {{\bf{b, f}}} \right){\bf{,}}\left( {{\bf{c, d}}} \right){\bf{,}}\left( {{\bf{c, g}}} \right){\bf{,}}\left( {{\bf{e, i}}} \right){\bf{,}}\left( {{\bf{f, j}}} \right){\bf{,}}\left( {{\bf{g, h}}} \right){\bf{,}}\left( {{\bf{g, k}}} \right){\bf{,}}\left( {{\bf{k, l}}} \right)\).

Step by step solution

01

Definition

A graph is connected if there exists a path between every pair of vertices.

Kruskal's algorithm:

Start from a graph \({\bf{T}}\) that contains only the vertices and no edges. Repeatedly select the edge in the given graph \({\bf{G}}\) with the smallest weight (that doesn't cause a circuit) and add it to the graph \({\bf{T}}\).Once the graph is connected, we have found a minimum spanning tree.

02

Using the Kruskal’s algorithm

Let \({\bf{T}}\) be the graph with the vertices of the given graph \({\bf{G}}\) and with no edges between the vertices.

We first add the edged \({\bf{(e,i)}}\) and \({\bf{(g,k)}}\). Next, we will apply Kruskal's algorithm to determine the remaining edges.

\({\bf{(e,i),(g,k)}} \in {\bf{T}}\)

The smallest weight of \(1\) occurs between \({\bf{b}}\)and \({\bf{f}}\), between \({\bf{c}}\) and \({\bf{d}}\)and between \({\bf{k}}\) and \({\bf{l}}\), thus we add these edges to the graph \({\bf{T}}\) (as none of these edges cause a circuit).

\({\bf{(b,f),(c,d),(k,l)}} \in {\bf{T}}\)

03

Weight of edge

The smallest weight of \(2\) in the remaining graph is between \({\bf{a}}\) and \({\bf{b}}\), between \({\bf{c}}\) and \({\bf{g}}\)and between \({\bf{f}}\) and \({\bf{j}}\), thus we add these edges to the graph \({\bf{T}}\) (as none of these edges cause a circuit).

\({\bf{(a,b),(c,g),(f,j)}} \in {\bf{T}}\)

The smallest weight in the remaining graph is \(3\). There are many edges with weight \(3\) , we still require \(3\) edges and thus we should select \(3\) edges that do not cause any circuits. For example, I will choose \({\bf{(a,e),(b,c)}}\) and \({\bf{(g,h)}}\) (note: you could choose different edges).

\({\bf{(a,e),(b,c),(g,h)}} \in {\bf{T}}\)

04

Step 4:Obtaining graph

One has then obtained a connected graph and thus the minimum spanning tree contains the edges mentioned above (that were added to T ).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Build a binary search tree for the wordโ€™s banana, peach, apple, pear, coconut, mango, and papaya using alphabetical order.

Answer these questions about the rooted tree illustrated.

  1. Which vertex is the root\(?\)
  2. Which vertices are internal\(?\)
  3. Which vertices are leaves\(?\)
  4. Which vertices are children of \({\bf{j}}\)\(?\)
  5. Which vertex is the parent of \({\bf{h}}\)\(?\)
  6. Which vertices are siblings of \({\bf{o}}\)\(?\)
  7. Which vertices are ancestors of \({\bf{m}}\)\(?\)
  8. Which vertices are descendants of \({\bf{b}}\)\(?\)

Show that if there are \(r\) trees in the forest at some intermediate step of Sollinโ€™s algorithm, then at least \(\left\lceil {\frac{r}{2}} \right\rceil \)edges are added by the next iteration of the algorithm.

When Kruskal invented the algorithm that finds minimumspanning trees by adding edges in order of increasing weightas long as they do not form a simple circuit, he also inventedanother algorithm sometimes called the reverse-delete algorithm. This algorithm proceeds by successively deletingedges of maximum weight from a connected graph as long asdoing so does not disconnect the graph.

Express the reverse-delete algorithm in pseudocode.

Draw a game tree for him if the starting position consists of two piles with two and three stones, respectively. When drawing the tree represent by the same vertex symmetric positions that result from the same move. Find the valueof each vertex of the game tree. Who wins the game if both players follow an optimal strategy?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free