Lecture 37 CSE 331 Nov 30, 2011
CSEd Week celebrations http://csedweek.wordpress.com/ Volunteers needed!
Thursday (tomorrow) 6PM Bell 224 CSEd Week (ACM) Thursday (tomorrow) 6PM Bell 224
Backchannel open today
Sample final exam Posted on the blog
Need volunteers for today
Fresh off the interwebs
Reading Assignment Sec 6.1, 6.2 of [KT]
When to use Dynamic Programming There are polynomially many sub-problems Richard Bellman Optimal solution can be computed from solutions to sub-problems There is an ordering among sub-problem that allows for iterative solution
Shortest Path Problem Input: (Directed) Graph G=(V,E) and for every edge e has a cost ce (can be <0) t in V Output: Shortest path from every s to t Assume that G has no negative cycle 1 100 -1000 899 s t Shortest path has cost negative infinity
Today’s agenda Dynamic Program for shortest path
May the Bellman force be with you