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

Use breadth-first search to find a spanning tree of each of the graphs in Exercise 17.

Short Answer

Expert verified

For the result follow the steps.

Step by step solution

01

Compare with the definition.

A spanning tree of a simple graph G is a subgraph of G that is a tree and that contains all vertices of G.

A tree is an undirected graph that is connected and that does not contains any single circuit. And a tree with n vertices has n-1 edges.

02

method for finding breadth first search.

First choose a root. Add all edges incident to the root. Then each of the vertices at level 1, add all edges incident with ta vertex not included in the tree yet. And repeat until all vertices were added to the tree.

03

Solution for\({{\bf{W}}_{\bf{6}}}\).

Here \({{\bf{W}}_{\bf{6}}}\)is a cycle \({{\bf{C}}_{\bf{6}}}\)with an additional vertex that is connected to all other vertices.

Let the 7 vertices are a,b,c,d,e,f,g with a the vertex connected to all other vertices.

Starts form vertex a. So, path =a.

And a is adjacent to the b,c,d,e,f,g. Thus we can draw the edges from a to all other vertex.

The spanning tree is

04

Result for \({{\bf{K}}_{\bf{5}}}\).

Here \({{\bf{K}}_{\bf{5}}}\)has 5 vertices and edges between every pair of vertices.

Let the 5 vertices are a,b,c,d,e with a the vertex connected to all other vertices.

Starts form vertex a.So path=a.

And a is adjacent to the b,c,d,e.Thus we can draw the edges from a to all other vertex.

The spanning tree is

05

Find the result of \({{\bf{K}}_{{\bf{3,4}}}}\).

Here \({{\bf{K}}_{{\bf{3,4}}}}\)contains set of 3 vertices M=a,b,c and a set of 4 vertices N=d,e,f,g.

Every vertex in M is connected to vertex in N.

Starts form vertex a.

And a is adjacent to the d,e,f,g. Thus we can draw the edges from d,e,f,g.

Now d is adjacent to b,c,thus we can draw from d to b and c.

The spanning tree is

06

Find the spanning tree for \({{\bf{Q}}_{\bf{3}}}\).

Here \({{\bf{Q}}_{\bf{3}}}\)contains the bit strings of 3 vertices 000,001,011,100,101,110,111.

Vertices are connected if exactly one of the bits of the strings differ.

Starts form vertex 000.

And 000 is adjacent to the 001,010,100.Thus we can draw the edges from 000 to 001,010,100.

Now 001 is adjacent to 011,101.Thus can draw an edges from 001 to 011,101.

The next path 010 is adjacent to 110. Then draw an edges from 010 to 110.

101 is adjacent to 111. Thus draw an edge from 101 to 111.

The spanning tree is

This is the required result.

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

In Exercises 2โ€“6 find a spanning tree for the graph shown byremoving edges in simple circuits.

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?

What is wrong with the following โ€œproofโ€ using mathematical induction of the statement that every tree with \({\bf{n}}\) vertices has a path of length \({\bf{n - 1}}\). Basis step: Every tree with one vertex clearly has a path of length \(0\). Inductive step: Assume that a tree with \({\bf{n}}\) vertices has a path of length \({\bf{n - 1}}\), which has \({\bf{u}}\) as its terminal vertex. Add a vertex \({\bf{v}}\) and the edge from \({\bf{u}}\)to \({\bf{v}}\). The resulting tree has \({\bf{n + 1}}\) vertices and has a path of length \({\bf{n}}\). This completes the inductive step.

Show that a center should be chosen as the root to producea rooted tree of minimal height from an unrooted tree.

Show that every tree can be colored using two colors. The rooted Fibonacci trees \({\bf{Tn}}\) are defined recursively in the following way. \({\bf{T1}}\)and\({\bf{T}}2\) are both the rooted tree consisting of a single vertex, and for \({\bf{n = 3, 4,}}...{\bf{,}}\) the rooted tree \({\bf{Tn}}\) is constructed from a root with \({\bf{Tn - }}1\) as its left subtree and \({\bf{Tn - 2}}\) as its right subtree.

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