spanning tree

Hi all,
in the pix, a: a network, b: a spanning tree for leftmost router, c : a multicast tree for group 1, d: a multicast tree for group 2.

can you help me to derive algrogithm or pseudocode how to come up with b and c. Tks.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The spanning tree (b) can be obtained with Dijkstra's shortest path algorithm (like I mentioned in your previous question).

The last two tree's are simply sub-tree's of the spanning tree, so only the required nodes are connected (ie. those nodes that are part of the multicast group). They could be obtained simply by starting from the end of every branch, and removing edges that are not needed.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BeginToLearnAuthor Commented:
i wonder one thing. They never mention the source and destination. So how can we apply shortest path algorithm?
You said yourself that the trees were "for leftmost router". So, that's the destination in all three trees.

Dijkstra's algorithm finds the shortest paths between all sources and that destination.
BeginToLearnAuthor Commented:
"for the leftmost router" is the term  from the book hihi
Either way - it answers your question about what the destination is ;)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.