spanning trees

10
Spanning trees of a graph

Upload: eugenewong

Post on 18-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

Spanning tree presentation

TRANSCRIPT

Page 1: Spanning Trees

Spanning trees of a graph

Page 2: Spanning Trees

Definition

A subgraph T of a undirected graph G is a spanning tree of G if it is a tree and contains every vertex of G

 a tree is an undirected graph in which any two vertices are connected by exactly one path.

Page 3: Spanning Trees

Theorem

Every connected graph has a spanning tree.

Why is this true?

Given a connected graph of G. How can you find a spanning tree of G?

Page 4: Spanning Trees

Weighted graphs

A weighted graph is a graph in which every edge has a weight (some real number).

Weight of the graph = The sum of weights of all edges.

Page 5: Spanning Trees

Minimum spanning tree

A minimum spanning tree in an undirected connected weighted graph is a spanning tree of minimum weight (among all spanning trees).

Page 6: Spanning Trees

Minimum spanning tree may not be unique

Page 7: Spanning Trees

Minimum spanning tree (MST) problem

Given a connected weighted undirected graph G, design an algorithm that outputs a minimum spanning tree (MST) of G.

The MST is fundamental problem with diverse applications.

• Network design.

telephone, electrical, hydraulic, TV cable, computer, road

• Approximation algorithms for NP-hard problems.

traveling salesperson problem, Steiner tree

• Indirect applications.

learning salient features for real-time face verification

reducing data storage in sequencing amino acids in a protein

model locality of particle interactions in turbulent fluid flows

Page 8: Spanning Trees

MST describes arrangement of nuclei in the epithelium for cancer research

Page 9: Spanning Trees

What is the most intuitive way to solve?

How to find a MST?

Page 10: Spanning Trees

Kruskal’s algorithm

Consider edges in ascending order of cost. Add the next edge to T unless doing so would create a cycle.

Kruskal’s algorithm