Analysis of Algorithms

Slides:



Advertisements
Similar presentations
Minimum Spanning Trees Definition Two properties of MST’s Prim and Kruskal’s Algorithm –Proofs of correctness Boruvka’s algorithm Verifying an MST Randomized.
Advertisements

Introduction to Algorithms 6.046J/18.401J L ECTURE 16 Greedy Algorithms (and Graphs) Graph representation Minimum spanning trees Optimal substructure Greedy.
Minimum Spanning Trees
A Randomized Linear-Time Algorithm to Find Minimum Spaning Trees 黃則翰 R 蘇承祖 R 張紘睿 R 許智程 D 戴于晉 R David R. Karger.
A Randomized Linear-Time Algorithm to Find Minimum Spanning Trees David R. Karger David R. Karger Philip N. Klein Philip N. Klein Robert E. Tarjan.
MIN-COST ABORESCENCES YQ Lu. Aborescence Definition: Given a directed graph G=(V,E) and a root r, an aborescence rooted at r is a subgraph T that each.
DAST 2005 Tirgul 14 (and more) sample questions. DAST 2005 (reminder?) Kruskal’s MST Algorithm.
Lecture 12 Minimum Spanning Tree. Motivating Example: Point to Multipoint Communication Single source, Multiple Destinations Broadcast – All nodes in.
Princeton University COS 423 Theory of Algorithms Spring 2002 Kevin Wayne MST: Red Rule, Blue Rule Some of these lecture slides are adapted from material.
Minimum Spanning Trees CIS 606 Spring Problem A town has a set of houses and a set of roads. A road connects 2 and only 2 houses. A road connecting.
CSE 421 Algorithms Richard Anderson Lecture 10 Minimum Spanning Trees.
T,  e  T c(e) = 50 G = (V, E), c(e) Minimum Spanning Tree.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 11 Instructor: Paul Beame.
Prim’s Algorithm and an MST Speed-Up
Lecture 27 CSE 331 Nov 6, Homework related stuff Solutions to HW 7 and HW 8 at the END of the lecture Turn in HW 7.
Minimum Spanning Trees. Subgraph A graph G is a subgraph of graph H if –The vertices of G are a subset of the vertices of H, and –The edges of G are a.
1 Minimum Spanning Tree in expected linear time. Epilogue: Top-in card shuffling.
Theory of Computing Lecture 10 MAS 714 Hartmut Klauck.
Introduction to Algorithms L ECTURE 14 (Chap. 22 & 23) Greedy Algorithms I 22.1 Graph representation 23.1 Minimum spanning trees 23.1 Optimal substructure.
0 Course Outline n Introduction and Algorithm Analysis (Ch. 2) n Hash Tables: dictionary data structure (Ch. 5) n Heaps: priority queue data structures.
Minimum Spanning Trees Easy. Terms Node Node Edge Edge Cut Cut Cut respects a set of edges Cut respects a set of edges Light Edge Light Edge Minimum Spanning.
Prim's Algorithm This algorithm starts with one node. It then, one by one, adds a node that is unconnected to the new graph to the new graph, each time.
Lecture 19 Greedy Algorithms Minimum Spanning Tree Problem.
Minimal Spanning Tree Problems in What is a minimal spanning tree An MST is a tree (set of edges) that connects all nodes in a graph, using.
A deterministic near-linear time algorithm for finding minimum cuts in planar graphs Thank you, Steve, for presenting it for us!!! Parinya Chalermsook.
Minimum- Spanning Trees
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 11.
Algorithm Analysis Fall 2017 CS 4306/03
Minimum Spanning Tree Chapter 13.6.
Lecture 26 CSE 331 Nov 2, 2016.
Lecture 21 Primal-Dual in Algorithms
Chapter 4 Greedy Algorithms
Greedy Algorithms / Minimum Spanning Tree Yin Tat Lee
Data Structures & Algorithms Graphs
Autumn 2016 Lecture 11 Minimum Spanning Trees (Part II)
A Randomized Linear-Time Algorithm to Find Minimum Spanning Trees
Minimum Spanning Tree.
Randomized Algorithms CS648
Connected Components Minimum Spanning Tree
Minimum Spanning Tree.
Lecture 24 CSE 331 Oct 28, 2016.
Autumn 2015 Lecture 11 Minimum Spanning Trees (Part II)
Kruskal’s Algorithm for finding a minimum spanning tree
Lecture 26 CSE 331 Nov 1, 2017.
Chapter 23 Minimum Spanning Tree
Richard Anderson Lecture 11 Minimum Spanning Trees
Autumn 2015 Lecture 10 Minimum Spanning Trees
Chapter 4 Greedy Algorithms
Minimum Spanning Tree Optimizations
Lecture 27 CSE 331 Oct 31, 2014.
Lecture 25 CSE 331 Oct 27, 2014.
Lecture 28 CSE 331 Nov 7, 2012.
Lecture 27 CSE 331 Nov 2, 2010.
Richard Anderson Lecture 10 Minimum Spanning Trees
Autumn 2016 Lecture 10 Minimum Spanning Trees
CSC 172 DATA STRUCTURES.
Introduction to Algorithms: Greedy Algorithms (and Graphs)
Minimum Spanning Trees (MSTs)
Winter 2019 Lecture 11 Minimum Spanning Trees (Part II)
Lecture 25 CSE 331 Oct 28, 2011.
Prim’s algorithm for minimum spanning trees
Winter 2019 Lecture 10 Minimum Spanning Trees
Lecture 14 Minimum Spanning Tree (cont’d)
Spanning Tree.
Chapter 23: Minimum Spanning Trees: A graph optimization problem
Minimum Spanning Trees
Lecture 27 CSE 331 Nov 1, 2013.
Autumn 2019 Lecture 11 Minimum Spanning Trees (Part II)
Presentation transcript:

Analysis of Algorithms Minimum Spanning Trees Uri Zwick February 2014

Find a minimum spanning tree 11 16 22 17 5 8 1 13 3 18 30 12 25 9 2 15

Kruskal’s algorithm 11 16 22 17 5 8 1 13 3 18 30 12 25 9 2 15

Prim’s algorithm 11 16 22 17 5 8 1 13 3 18 30 12 25 9 2 15

Boruvka’s algorithm 11 16 22 17 5 8 1 13 3 18 30 12 25 9 2 15

MST verification 11 16 22 17 5 8 1 13 3 18 30 12 25 9 2 15

Comparison-based MST algorithms Running time Algorithm O(m log n) Kruskal (1956) O(m + n log n) Prim (1957) Boruvka (1926)  O(m log (m,n)) Gabow-Galil- Spencer-Tarjan (1986) O(m (m,n)) Chazelle (2000) O(m + n) Karger-Klein-Tarjan (1995) Deterministic Rand.

Assume for simplicity that all edge weights are distinct The MST is then unique

The lightest edge in a cut is contained in the MST Cut rule S VS The lightest edge in a cut is contained in the MST

The heaviest edge on a cycle is not contained in the MST Cycle rule C The heaviest edge on a cycle is not contained in the MST

The intersection between a cut and a cycle is of even size Cuts and cycles The intersection between a cut and a cycle is of even size

Fundamental cycles Tree + non-tree edge  unique cycle The removal of any tree edge on the cycle generates a new tree

The lightest edge in a cut is contained in the MST Cut rule - proof S VS w' w w < w' The lightest edge in a cut is contained in the MST