Download presentation
Presentation is loading. Please wait.
1
Lecture 25 CSE 331 Nov 2, 2009
2
Adding teeth to group talk Form groups of size at most six (6) Pick a group leader I will ask group leader(s) to come and answer a question on the board
3
Solutions to HW 6 END of the lecture
4
E. W. Dijkstra (1930-2002)
5
Dijkstra’s shortest path algorithm Input: Directed G=(V,E), l e ≥ 0, s in V S = {s}, d(s) =0 While there is a v not in S with (u,v) in E, u in S Pick w that minimizes d’(w) Add w to S d(w) = d’(w) At most n iterations O(m) time O(mn) time bound is trivial O(m log n) time implementation is possible
6
Reading Assignment Sec 4.4 of [KT]
7
Building a fiber network Lay down fibers to connect n locations All n locations should be connected Laying down a fiber costs money What is the cheapest way to lay down the fibers?
8
Today’s agenda Minimum Spanning Tree (MST) Problem Greedy algorithm(s) for MST problem
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.