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

Suppose that the computer network connecting the cities in Figure \({\bf{1}}\) must contain a direct link between New York and Denver. What other links should be included so that there is a link between every two computer centers and the cost is minimized?

Short Answer

Expert verified

Minimum spanning tree containing link between New York and Denver contains edges:

(Chicago, Atlanta)

(New York, Atlanta)

(Denver, San Francisco)

(Denver, New York)

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

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

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

Weight of the edge

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 edge between New York and Denver. Next, we will apply Kruskal's algorithm to determine the remaining edges.

The smallest weight of \({\bf{\$ 700}}\) occurs between Chicago and Atlanta, thus we add this edge to the graph \({\bf{T}}\) (as the edge does not cause a circuit).

The smallest weight of \({\bf{\$ 800}}\) in the remaining graph is between New York and Atlanta, thus we add this edge to the graph \({\bf{T}}\) (as the edge does not cause a circuit).

03

Obtaining the graph

The smallest weight of \({\bf{\$ 900}}\) in the remaining graph is between San Francisco and Denver, thus one adds this edge to the graph \({\bf{T}}\) (as the edge does not cause a circuit).

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

One App. One Place for Learning.

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

Get started for free

Study anywhere. Anytime. Across all devices.

Sign-up for free