Apply depth-first-search to find out the spanning tree, Mathematics

Assignment Help:

Apply depth-first-search to find out the spanning tree for the subsequent graph with vertex d as the starting vertex.       

1410_Apply depth-first-search to find out the spanning tree.png

Ans: Let us begin with node'd'. Mark d as visited node. Node'd' comprises two child 'e' and 'f'. After that Visit node 'e' and mark it as visited. Select edge (d, e) and add it to spanning tree T. So, T = {(d, e)}  Now e has e has two children: c and f. Visit c, add (e, c) to T, and mark c as visited. After that visit a and after that b. Mark them visited node and add arcs (c, a) and (c, b) to T. Up to here 

T = {(d, e), (e, c), (c, a), (c, b)}

Now here c has one more child e, which is previously visited, so exit recursion and go up to e that one more unvisited child f. Visit it, mark it as visited and we add (e, f) to T.  f comprise three (3) children: d, g and h. d is visited so leave it. Visit g, and doing the basic work of marking as visited and adding the arc utilized to visit the node in T, we at last get T as 

T = {(d, e), (e, c), (c, a), (c, b), (e, f), (f, g), (g, h), (h, i), (h, k), (k, j)}


Related Discussions:- Apply depth-first-search to find out the spanning tree

What are factor trees explain, What are Factor Trees explain? In algebr...

What are Factor Trees explain? In algebra, we often need to factor a number into its prime factors. One way to do this is to use a factor tree. This is a network of numbers, st

Product moment coefficient, Product Moment Coefficient This gives an i...

Product Moment Coefficient This gives an indication of the strength of the linear relationship among two variables. Note that this formula can be rearranged to have di

Help, dividing decimals

dividing decimals

Differentiate hyperbolic functions, Differentiate following functions. (...

Differentiate following functions. (a)  f ( x ) = 2 x 5 cosh x (b) h (t ) = sinh t / t + 1 Solution (a) f ′ ( x ) = 10x 4 cosh x + 2x 5 sinh x (b) h′ (t ) = (t

Progressions, * 2^(1/2)*4^(1/8)*8^(1/16)*16^(1/32) =

* 2^(1/2)*4^(1/8)*8^(1/16)*16^(1/32) =

Find all the real solutions to cubic equation, Find all the real solutions ...

Find all the real solutions to cubic equation x^3 + 4x^2 - 10 =0. Use the cubic equation x^3 + 4x^2 - 10 =0 and perform the following call to the bisection method [0, 1, 30] Use

Congruence of triangle, make an assignment based on congruence of triangle

make an assignment based on congruence of triangle

Estimate the temperature, The temperature at midnight was 4°F. Through 2 A....

The temperature at midnight was 4°F. Through 2 A.M. it had dropped 9°F. What was the temperature at 2 A.M.? If the temperature is only 4° and drops 9°, it goes below zero. It d

Example of least common denominator, Example of Least Common Denominator: ...

Example of Least Common Denominator: Example: Add 1/7 +2 /3 + 11/12 + 4/6 Solution: Step 1:             Find out primes of each denominator. 7 = 7 (already is

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd