The Minimum Spanning Tree Problem: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:


Given an [[Graph_Concepts#Undirected_Graph|undirected]] graph G=(V, E) and a positive or negative cost c<sub>e</sub> for each edge e ∈ E, find the minimum [[Graph_Concepts#Spanning_Tree_Cost|cost]] [[Graph_Concepts#Spanning_Trees|spanning tree]] T ⊆ E (MST).
Given an [[Graph_Concepts#Undirected_Graph|undirected]] graph G=(V, E) and a positive or negative cost c<sub>e</sub> for each edge e ∈ E, find the minimum [[Graph_Concepts#Spanning_Tree_Cost|cost]] [[Graph_Concepts#Spanning_Trees|spanning tree]] T ⊆ E (MST).
:::[[File:MinimumCostSpanningTree.png|295px]]


=Algorithms=
=Algorithms=

Revision as of 23:21, 20 October 2021

External

Internal

Overview

We discuss the minimum spanning problem in the context of undirected graphs. The same problem can be discussed for directed graphs but in that case it is referred to as the Optimal Branching Problem.

The Problem

Given an undirected graph G=(V, E) and a positive or negative cost ce for each edge e ∈ E, find the minimum cost spanning tree T ⊆ E (MST).

Algorithms

Prim's Algorithm

Prim's Algorithm

Kruskal's Algorithm