Top "Minimum-spanning-tree" questions

A minimum spanning tree (MST) or minimum weight spanning tree is a spanning tree of a connected, undirected graph with the least possible weight.

Differences between Minimum Spanning Tree and Shortest Path Tree

Here is an exercise: Either prove the following or give a counterexample: (a) Is the path between a pair of …

algorithm data-structures graph shortest-path minimum-spanning-tree
Is there a minimum spanning tree that does not contain the min/max weighted edge?

If we have an (arbitrary) connected undirected graph G, whose edges have distinct weights, does every MST of G contains …

algorithm minimum-spanning-tree
Updating a Minimum spanning tree when a new edge is inserted

I've been presented the following problem in University: Let G = (V, E) be an (undirected) graph with costs ce >= 0 …

algorithm language-agnostic minimum-spanning-tree
Check if edge is included in SOME MST in linear time (non-distinct values)

I am working on an algorithm to check if a given edge is included in one of all possible mst's. …

algorithm minimum-spanning-tree
Finding a minimum spanning tree on a directed graph

What algorithm can I use to find a minimum spanning tree on a directed graph? I tried using a modification …

algorithm graph minimum-spanning-tree
All minimum spanning trees implementation

I've been looking for an implementation (I'm using networkx library.) that will find all the minimum spanning trees (MST) of …

python algorithm language-agnostic graph-theory minimum-spanning-tree
Why do we need a priority queue in Prim's Algorithm

As my question speaks I want to know why do we use Priority queue in Prim's Algorithm? How does it …

c++ algorithm graph-theory minimum-spanning-tree prims-algorithm
Prim's and Kruskal's algorithm

Prim's and Kruskal's algorithm both produce the minimum spanning tree. According to the cut property, the total cost of the …

minimum-spanning-tree prims-algorithm kruskals-algorithm
Implementing a randomly generated maze using Prim's Algorithm

I am trying to implement a randomly generated maze using Prim's algorithm. I want my maze to look like this: …

algorithm graph-theory maze minimum-spanning-tree
Proving that no minimum spanning tree contains the maximum weighted edge

Let's say there's Graph G such that it all its edges have weights that correspond to distinct integers. So no …

algorithm graph minimum-spanning-tree