Myriad of applications
|
|
- Holly Shaw
- 6 years ago
- Views:
Transcription
1 Shortet Path
2 Myriad of application Finding hortet ditance between location (Google map, etc.) Internet router protocol: OSPF (Open Shortet Path Firt) i ued to find the hortet path to interchange package between erver (IP) Traffic information ytem Routing in VSLI etc...
3 Shortet ditance between two point not alway follow human intuition It may depend on many more contrain than the pure geometric one.
4 Shortet path problem in direct weighted graph Given a digraph G = (V, E) with edge weight w : E R, a path p = {v 0,..., v k } i a equence of conecutive edge, where (v i, v i+ ) E define w(p) = k i=0 w(v i, v i+ ). The hortet path between u and v a δ(u, v) = min p {w(p) u p v} v v v v 4 v δ(v, v 5 ) = If G i undirected, we can conider every edge a doubly directed. Unweighted, every edge of weight =.
5 Optimal ubtructure of hortet path Given G = (V, E), w : E R, for any hortet path p : u v and any i, j vertice in p, the ub-path p = i j in p ha the hortet ditance δ(i, j). i j u v Negative cycle u 4 5 v δ(u, v) =
6 Taxonomy of hortet path problem Single ource hortet path (SSSP): Given G = (V, E), w : E R and V, compute δ(, v), v V {v}. In the graph below we want to compute (, a), (, b), (, c), (, d) All path hortet path (APSP): Given = (V, E), w : E R compute δ(u, v) for every pair (u, v) V V. In the graph below we want to compute (, a), (a, ),... (d, b), (b, d), (d, c), (c, d) a b d c
7 Single ource hortet path Let u conider the particular cae of having a ource and a ink t Aume that w : e R + Brute-force(G, W,, t) for all imple p : t do compute w(p) end for Compare all p return the p with mallet w(p) The number of path could be O( n ) a d 4 n b t t
8 Shortet Path Tree SSSP algorithm have the property that at termination the reulting path form a hortet path tree. Given G = (V, E) with edge weight w e and a ditinguihed V, a hortet path tree i a directed ub-tree T = (V, E ) of G,.t. T i rooted at, V i the et of vertice in G reachable from, v V the path v in T i the hortet path δ(, v). a d b c f a d b c f
9 Triangle Inequality Given G = (V, E), W, if u, v, z V, notice the hortet path u v i any other path between u and v. Therefore. Theorem For all u, v, z V δ(u, v) δ(u, z) + δ(z, v). u v u v δ(u, z) Want minimum z δ(z, y) δ(u, v) - - z Notice, in thi cae δ(u, v) =
10 Baic technique for SSSP: Relaxation Given G = (V, E), W. v V we maintain a SP-etimate d[v], which i an UB on δ(, v). Initially, tart with d[v] = +, v V {} and d[] = 0. Repeatedly improve etimate toward the goal d[v] = δ(, v). For (u, v) E, Relax(u, v, w(u, v)) if d[v] > d[u] + w(u, v) then d[v] = d[u] + w(u, v) end if d[u] d[v] u w(u,v) v
11 Generic Relaxation algorithm Relaxation(G, W, ) for all v V {} do d[v] = + end for d[] = 0 while (u, v) with d[v] > d[u] + w(u, v) do Relax(u, v, w(u, v)) end while Lemma For all v V, Relaxation(G, W, ) maintain the invariant that d[v] δ(, v). Proof (Induction) I.H. when applying Relax(u, v, w(u, v)) we get d[u] δ(, u) By the triangle ineq. δ(, v) δ(, u) + δ(u, v) d[u] + w(u, v). Therefore, letting δ(u, v) = d[u] + w(u, v) i not a problem.
12 Generic Relaxation algorithm a b a b d c d c a b d c a d a b b c d c
13 Relaxation algorithm Note: If a negative-weight cycle i reachable from, then Relaxation(G, W, ) doe not top. If we apply Relaxation(G, W, ) to the graph in the graph below, we get that the number of tep follow T (n) = T (n ) +, T (n) = Θ( n/ ) n Prove that indeed the complexity of Relaxation on the above graph i T (n) = Θ( n/ )
14 Recall: Dktra SSSP E.W.Dktra, A note on two problem in connexion with graph. Num. Mathematik, (959) Greedy algorithm. Relax edge in an increaing ball around. Ue a priority queue Q Dtra doe not work with negative weight Complexity: Fatet SSSP algorithm. Dktra(G, W, ) Initialize SP-etimate on V S =, Q = {V } while Q do u =EXT-MIN(Q) S = S {u} for all v Adj[u] do Relax(u, v, w(u, v)) end for end while Q implementation Wort-time complexity Array O(n ) Heap O(m lg n) Fibonacci heap O(m + n lg n)
15 Bellman-Ford-Moore SSSP R. Bellman (958) L. Ford (956) E. Moore (957) The algorithm BFM i ued for G with negative weight, but without negative cycle. Given G, w, V (G),with n vertice and m edge, the BFM algorithm doe n iteration: Each iteration i doe a relaxation on all edge than can be reached from in at mot i-tep, the remaining one are et to (e, e,..., e n ), (e }{{}, e,..., e n ), (e }{{}, e,..., e n ) }{{} i= i= i=n
16 BFM Algorithm Recall that given a graph G, V = n, E = n, and a et of edge weight w with a ource vertex v V, BFM (G, w, ) Initialize v, d[v] =, π[v] = u Initialize d[] = 0 for i = to n do for every (u, v) E do Relax(u, v, w(u, v)) end for end for for every (u, v) E do if d[v] > d[u] + w(u, v) then return Negative-weight cycle end if end for Relax(u, v, w(u, v)) if d[v] > d[u] + w(u, v) then d[v] = d[u] + w(u, v) π[v] = u end if
17 BFM Algorithm: Example a 4 g b f e c d Node i a b c d e f g
18 BFM Algorithm: Example a 4 g 8 b f e c d Node i a b c d e f g
19 BFM Algorithm: Example a 4 g 8 b f 9 c e d Node i a b c d e f g
20 BFM Algorithm: Example a b 4 g f 8 9 c e 8 d Node i a b c d e f g
21 BFM Algorithm: Example a b 4 g f 8 9 c e 7 d Node i a b c d e f g
22 BFM Algorithm: Example a b c 4 g f e d 4 Node i a b c d e f g
23 BFM Algorithm: Example a b c 4 g f e d 0 Node i a b c d e f g
24 BFM Algorithm: Example a b c 4 g f e d 9 Node i a b c d e f g
25 Complexity BFM O(n) O() O(m) O(nm) O(m) Complexity T(n)=O(nm)
26 Correctne of BFM Lemma In the BFM-algorithm, after the ith. iteration we have that d[v] the weight of every path v uing at mot i edge, v V. Proof (Induction on i) Before the ith iteration, d[v] min{w(p)} over all path p with at mot i edge. The relaxation only decreae d[v] The ith iteration conider all path with i edge when relaxing the edge to v. at mot i edge v
27 Correctne of BFM Theorem If G, w ha no negative weight cycle, then at the end of the BFM-algorithm d[v] = δ(, v). Proof Without negative-weight cycle, hortet path are alway imple. Every imple path ha at mot n vertice and n edge. By the previou lemma, the n iteration yield d[v] δ(, v). By the invariance of the relaxation algorithm d[v] δ(, v).
28 Correctne of BFM Theorem BFM will report negative-weight cycle if there exit in G. Proof Without negative-weight cycle in G, the previou theorem implie d[v] = δ(, v), and by triangle inequality d[v] δ(, u) + w(u, v), o BFM won t report a negative cycle if it doen t exit. If there i a negative-weight cycle, then one of it edge can be relaxed, o BFM will report correctly.
29 Shortet path in a direct acyclic graph (dag). Min-cot path in DAG INPUT: Edge weighted dag G = (V, E, w), V = n, w : E R together with given, t V. QUESTION: Find a path P : t of minimum total weight. Notice given a dag G = (V, E), W we wih to find a path P from to t.t. min P () P w. a c 6 b e g
30 Arranging dag into a line Arrange the dag in topological order, o that all edge go from left to right. Thi can be done in O(n) uing DFS. a c 6 b e f c a 6 b f e DFS
31 We want to find horter ditance from to v. Let d(v) = ditance v d(f ) = min{d(b)+, d(c)+} The chema i baed on the topological linearity of G. c a b f e 6 Shortet ditance in dag G Initialize d() := 0 and v V {}, d(v) := for all v V {} in linearized order do d(v) := min (u,v) E {d(u) + w uv } end for Complexity? T (n) = O(n)
32 All pair hortet path: APSP Given G = (V, E), V = n, E = m and a weight w : E R we want to determine u, v V, δ(u, v). We aume we can have w < 0 but G doe not contain negative cycle. Naive idea: We apply O(n) time BFM or Dktra (if there are not negative weight) Repetition of BFM: O(n m) Repetition of Dktra: O(nm lg n) (if Q i implemented by a heap)
33 All pair hortet path: APSP Unlike in the SSSP algorithm that aumed adjacency-lit repreentation of G, for the APSP algorithm we conider the adjacency matrix repreentation of G. For convenience V = {,,... n}. The n n adjacency matrix W = (w(i, j)) of G, w: 0 if i = j w = w if (i, j) E if i j and (i, j) E
34 All pair hortet path: APSP The input i a n n adjacency matrix W = (w ) W = The output i a n n matrix D = (d ), where d = δ(i, j) For the implementation we alo need to compute the et of predeceor matrix Π k
35 Bernard-Floyd-Warhall Algorithm R. Bernard: Tranitivité et connexité C.R.Aca. Sci. 959 R. Floyd: Algorithm 97: Shortet Path. CACM 96 S. Warhall: A theorem on Boolean matrice. JACM, 96 The BFW Algorithm ued dynamic programming to compare all poible path between each pair of vertice in G. The algorithm work in O(n ) and the number of edge could be O(n ).
36 Optimal ubtructure of APSP Recall: Triangle inequality δ(u, v) δ(u, z) + δ(z, v). u δ(u, v) δ(u, z) δ(z, y) z Let p = p, p,..., p }{{ r, p } r and intermediate v. Let d (k) be the hortet i j.t. the intermediate vertice are in {,..., k}. So if k = 0, then d (0) = w. v
37 The recurrence Let p a hortet path i j with value d (k) If k i not an intermediate vertex of p, then d (k) If k i an intermediate vertex of p, then p = (i,..., k) (k,..., j) }{{}}{{} p p = d (k ) By triangle inequality p i a hortet path i k and p i a hortet path k j. { Therefore d (k) w if k = 0 = min{d (k ), d (k ) ik + d (k ) kj } if k
38 Bottom-up BFW-algorithm Given G = (V, E), w : E Z without negative cycle, the following DP algo. compute d (n), i, j V : BFW W = (w ) for k = to n do for i = to n do for j = to n do d (k) end for end for end for return d (n) = min{d (k ), d (k ) ik + d (k ) kj } Time complexity: T (n) = O(n ), S(n) = O(n ) but S(n) can be lowered to O(n ) How? Correctne follow from the recurrence argument.
39 Example D (0) = D() = D () = D() = D(4) = For intance, d, = (uing vertex ) = 4 (uing all vertice) d 4,
40 Example 0 NIL NIL NIL D (0) = Π (0) = NIL NIL NIL NIL 0 4 NIL NIL NIL 0 NIL NIL NIL D () = Π () = NIL NIL NIL NIL NIL NIL NIL NIL NIL D () = Π () = NIL NIL NIL NIL NIL NIL 0 D () = Π () = 0 0 NIL NIL NIL 4 NIL
41 Contructing the hortet path We want to contruct the matrix Π = (π ), where π = predeceor of j in hortet i j, we define a equence of matrice Π (0),..., Π (n).t. Π (k) = (π (k) ), i.e. the matrix of lat predeceor in the hortet path i j, which ue only vertice in {,..., k}. { If k = 0: π (k) NIL if i = j or w =, = i if i j and w. For k we get the recurrence: π (k) = { π (k ) π (k ) kj if d (k ) d (k ) ik otherwie. + d (k ) kj,
42 BFW with path BFW W d (0) = W for k = to n do for i = to n do for j = to n do if d (k) d (k) Π (k) d (k ) = d (k ) = Π (k ), d (k ) ik ele d (k) = d (k ) ik + d (k ) kj Π (k) end if end for end for end for return d (n) = Π (k ) kj Complexity: T (n) = O(n ) + d (k ) kj then
43 Concluion Dktra BFM BFW w 0 O(m lg n) O(nm) O(n ) w R NO O(nm) O(n ) There exit an algorithm by D. Johnon (978) that work in O(n lg n) for pare graph with negative edge. It ue Dktra a a function. For further reading on hortet path, ee chapter 4 and 5 of Cormen, Leieron, Rivet, Stein: Introduction to Algorithm.
Design and Analysis of Algorithms
Design and Analysis of Algorithms CSE 5311 Lecture 21 Single-Source Shortest Paths Junzhou Huang, Ph.D. Department of Computer Science and Engineering CSE5311 Design and Analysis of Algorithms 1 Single-Source
More informationCS 4407 Algorithms Lecture: Shortest Path Algorithms
CS 440 Algorithms Lecture: Shortest Path Algorithms Prof. Gregory Provan Department of Computer Science University College Cork 1 Outline Shortest Path Problem General Lemmas and Theorems. Algorithms Bellman-Ford
More informationSingle Source Shortest Paths
CMPS 00 Fall 017 Single Source Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk Paths in graphs Consider a digraph G = (V, E) with an edge-weight
More informationCMPS 6610 Fall 2018 Shortest Paths Carola Wenk
CMPS 6610 Fall 018 Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk Paths in graphs Consider a digraph G = (V, E) with an edge-weight function w
More informationAnalysis of Algorithms. Outline. Single Source Shortest Path. Andres Mendez-Vazquez. November 9, Notes. Notes
Analysis of Algorithms Single Source Shortest Path Andres Mendez-Vazquez November 9, 01 1 / 108 Outline 1 Introduction Introduction and Similar Problems General Results Optimal Substructure Properties
More informationCMPS 2200 Fall Carola Wenk Slides courtesy of Charles Leiserson with small changes by Carola Wenk. 10/8/12 CMPS 2200 Intro.
CMPS 00 Fall 01 Single Source Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with small changes by Carola Wenk 1 Paths in graphs Consider a digraph G = (V, E) with edge-weight function
More informationLecture 11. Single-Source Shortest Paths All-Pairs Shortest Paths
Lecture. Single-Source Shortest Paths All-Pairs Shortest Paths T. H. Cormen, C. E. Leiserson and R. L. Rivest Introduction to, rd Edition, MIT Press, 009 Sungkyunkwan University Hyunseung Choo choo@skku.edu
More informationSingle Source Shortest Paths
CMPS 00 Fall 015 Single Source Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk 1 Paths in graphs Consider a digraph G = (V, E) with an edge-weight
More informationAnalysis of Algorithms I: All-Pairs Shortest Paths
Analysis of Algorithms I: All-Pairs Shortest Paths Xi Chen Columbia University The All-Pairs Shortest Paths Problem. Input: A directed weighted graph G = (V, E) with an edge-weight function w : E R. Output:
More informationIntroduction to Algorithms
Introduction to Algorithms 6.046J/18.401J LECTURE 14 Shortest Paths I Properties of shortest paths Dijkstra s algorithm Correctness Analysis Breadth-first search Prof. Charles E. Leiserson Paths in graphs
More informationIntroduction to Algorithms
Introduction to Algorithms 6.046J/8.40J/SMA550 Lecture 7 Prof. Erik Demaine Paths in graphs Consider a digraph G = (V, E) with edge-weight function w : E R. The weight of path p = v v L v k is defined
More informationIntroduction to Algorithms
Introduction to Algorithms, Lecture 5 // Introduction to Algorithms 6.46J/.4J LECTURE Shortest Paths I Properties o shortest paths Dijkstra s Correctness Analysis Breadth-irst Pro. Manolis Kellis March,
More informationIntroduction to Algorithms
Introduction to Algorithms 6.046J/18.401J LECTURE 17 Shortest Paths I Properties of shortest paths Dijkstra s algorithm Correctness Analysis Breadth-first search Prof. Erik Demaine November 14, 005 Copyright
More informationDesign and Analysis of Algorithms
Design and Analysis of Algorithms CSE 5311 Lecture 22 All-Pairs Shortest Paths Junzhou Huang, Ph.D. Department of Computer Science and Engineering CSE5311 Design and Analysis of Algorithms 1 All Pairs
More informationCS 253: Algorithms. Chapter 24. Shortest Paths. Credit: Dr. George Bebis
CS : Algorithms Chapter 4 Shortest Paths Credit: Dr. George Bebis Shortest Path Problems How can we find the shortest route between two points on a road map? Model the problem as a graph problem: Road
More informationCS60020: Foundations of Algorithm Design and Machine Learning. Sourangshu Bhattacharya
CS6000: Foundations of Algorithm Design and Machine Learning Sourangshu Bhattacharya Paths in graphs Consider a digraph G = (V, E) with edge-weight function w : E R. The weight of path p = v 1 v L v k
More informationLecture Notes for Chapter 25: All-Pairs Shortest Paths
Lecture Notes for Chapter 25: All-Pairs Shortest Paths Chapter 25 overview Given a directed graph G (V, E), weight function w : E R, V n. Goal: create an n n matrix of shortest-path distances δ(u,v). Could
More informationSlides credited from Hsueh-I Lu & Hsu-Chun Hsiao
Slides credited from Hsueh-I Lu & Hsu-Chun Hsiao Homework 3 released Due on 12/13 (Thur) 14:20 (one week only) Mini-HW 9 released Due on 12/13 (Thur) 14:20 Homework 4 released Due on 1/3 (Thur) 14:20 (four
More informationDynamic Programming: Shortest Paths and DFA to Reg Exps
CS 374: Algorithms & Models of Computation, Fall 205 Dynamic Programming: Shortest Paths and DFA to Reg Exps Lecture 7 October 22, 205 Chandra & Manoj (UIUC) CS374 Fall 205 / 54 Part I Shortest Paths with
More informationDynamic Programming: Shortest Paths and DFA to Reg Exps
CS 374: Algorithms & Models of Computation, Spring 207 Dynamic Programming: Shortest Paths and DFA to Reg Exps Lecture 8 March 28, 207 Chandra Chekuri (UIUC) CS374 Spring 207 / 56 Part I Shortest Paths
More informationGreedy algorithms. Shortest paths in weighted graphs. Tyler Moore. Shortest-paths problem. Shortest path applications.
Shortet-path problem Greedy algorithm Shortet path in weighted graph Problem. Gien a digraph G = (V, E), edge length e 0, orce V, and detination t V, find the hortet directed path from to t. Tyler Moore
More informationCS4800: Algorithms & Data Jonathan Ullman
CS800: Algorithm & Data Jonathan Ullman Lecture 17: Network Flow Chooing Good Augmenting Path Mar 0, 018 Recap Directed graph! = #, % Two pecial node: ource & and ink = ' Edge capacitie ( ) 9 5 15 15 ource
More informationShortest Path Algorithms
Shortest Path Algorithms Andreas Klappenecker [based on slides by Prof. Welch] 1 Single Source Shortest Path 2 Single Source Shortest Path Given: a directed or undirected graph G = (V,E) a source node
More informationToday. Flow review. Augmenting paths. Ford-Fulkerson Algorithm. Intro to cuts (reason: prove correctness)
Today Flow review Augmenting path Ford-Fulkeron Algorithm Intro to cut (reaon: prove correctne) Flow Network = ource, t = ink. c(e) = capacity of edge e Capacity condition: f(e) c(e) Conervation condition:
More informationData Structures and and Algorithm Xiaoqing Zheng
Data Structures and Algorithm Xiaoqing Zheng zhengxq@fudan.edu.cn Representations of undirected graph 1 2 1 2 5 / 5 4 3 2 3 4 5 1 3 4 / 2 4 / 2 5 3 / 4 1 / Adjacency-list representation of graph G = (V,
More informationShortest Paths. CS 320, Fall Dr. Geri Georg, Instructor 320 ShortestPaths 3
Shortest Paths CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu 320 ShortestPaths 3 Preliminaries Weighted, directed graphs Weight function: maps edges to real numbers Shortest path weight:
More informationSparse Fault-Tolerant BFS Trees. Merav Parter and David Peleg Weizmann Institute Of Science BIU-CS Colloquium
Spare Fault-Tolerant BFS Tree Merav Parter and David Peleg Weizmann Intitute Of Science BIU-CS Colloquium 16-01-2014 v 5 Breadth Firt Search (BFS) Tree Unweighted graph G=(V,E), ource vertex V. Shortet-Path
More informationEcient Parallel Algorithms for Computing All Pair. University of Kentucky. Duke University
Ecient Parallel Algorithm for Computing All Pair Shortet Path in Directed Graph 1 Yijie Han 2 * Victor Y. Pan 3 ** John H. Reif*** *Department of Computer Science Univerity of Kentucky Lexington, KY 40506
More informationAlgorithm Design and Analysis
Algorithm Deign and Analyi LECTURES 1-1 Network Flow Flow, cut Ford-Fulkeron Min-cut/max-flow theorem Adam Smith // A. Smith; baed on lide by E. Demaine, C. Leieron, S. Rakhodnikova, K. Wayne Detecting
More informationarxiv: v1 [math.mg] 25 Aug 2011
ABSORBING ANGLES, STEINER MINIMAL TREES, AND ANTIPODALITY HORST MARTINI, KONRAD J. SWANEPOEL, AND P. OLOFF DE WET arxiv:08.5046v [math.mg] 25 Aug 20 Abtract. We give a new proof that a tar {op i : i =,...,
More informationCSE 431/531: Analysis of Algorithms. Dynamic Programming. Lecturer: Shi Li. Department of Computer Science and Engineering University at Buffalo
CSE 431/531: Analysis of Algorithms Dynamic Programming Lecturer: Shi Li Department of Computer Science and Engineering University at Buffalo Paradigms for Designing Algorithms Greedy algorithm Make a
More informationDiscrete Wiskunde II. Lecture 5: Shortest Paths & Spanning Trees
, 2009 Lecture 5: Shortest Paths & Spanning Trees University of Twente m.uetz@utwente.nl wwwhome.math.utwente.nl/~uetzm/dw/ Shortest Path Problem "#$%&'%()*%"()$#+,&- Given directed "#$%&'()*+,%+('-*.#/'01234564'.*,'7+"-%/8',&'5"4'84%#3
More informationPrimitive Digraphs with the Largest Scrambling Index
Primitive Digraph with the Larget Scrambling Index Mahmud Akelbek, Steve Kirkl 1 Department of Mathematic Statitic, Univerity of Regina, Regina, Sakatchewan, Canada S4S 0A Abtract The crambling index of
More informationClustering Methods without Given Number of Clusters
Clutering Method without Given Number of Cluter Peng Xu, Fei Liu Introduction A we now, mean method i a very effective algorithm of clutering. It mot powerful feature i the calability and implicity. However,
More informationDijkstra s Single Source Shortest Path Algorithm. Andreas Klappenecker
Dijkstra s Single Source Shortest Path Algorithm Andreas Klappenecker Single Source Shortest Path Given: a directed or undirected graph G = (V,E) a source node s in V a weight function w: E -> R. Goal:
More informationIntroduction to Algorithms
Introduction to Algorithms 6.046J/18.401J/SMA5503 Lecture 18 Prof. Erik Demaine Negative-weight cycles Recall: If a graph G = (V, E) contains a negativeweight cycle, then some shortest paths may not exist.
More informationProblem Set 8 Solutions
Deign and Analyi of Algorithm April 29, 2015 Maachuett Intitute of Technology 6.046J/18.410J Prof. Erik Demaine, Srini Devada, and Nancy Lynch Problem Set 8 Solution Problem Set 8 Solution Thi problem
More informationDiscrete Optimization 2010 Lecture 2 Matroids & Shortest Paths
Matroids Shortest Paths Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths Marc Uetz University of Twente m.uetz@utwente.nl Lecture 2: sheet 1 / 25 Marc Uetz Discrete Optimization Matroids
More informationLecture 21. The Lovasz splitting-off lemma Topics in Combinatorial Optimization April 29th, 2004
18.997 Topic in Combinatorial Optimization April 29th, 2004 Lecture 21 Lecturer: Michel X. Goeman Scribe: Mohammad Mahdian 1 The Lovaz plitting-off lemma Lovaz plitting-off lemma tate the following. Theorem
More informationChapter 5 Consistency, Zero Stability, and the Dahlquist Equivalence Theorem
Chapter 5 Conitency, Zero Stability, and the Dahlquit Equivalence Theorem In Chapter 2 we dicued convergence of numerical method and gave an experimental method for finding the rate of convergence (aka,
More informationAll-Pairs Shortest Paths
All-Pairs Shortest Paths Version of October 28, 2016 Version of October 28, 2016 All-Pairs Shortest Paths 1 / 26 Outline Another example of dynamic programming Will see two different dynamic programming
More informationCodes Correcting Two Deletions
1 Code Correcting Two Deletion Ryan Gabry and Frederic Sala Spawar Sytem Center Univerity of California, Lo Angele ryan.gabry@navy.mil fredala@ucla.edu Abtract In thi work, we invetigate the problem of
More informationMA015: Graph Algorithms
MA015 3. Minimum cuts 1 MA015: Graph Algorithms 3. Minimum cuts (in undirected graphs) Jan Obdržálek obdrzalek@fi.muni.cz Faculty of Informatics, Masaryk University, Brno All pairs flows/cuts MA015 3.
More informationChapter 4. The Laplace Transform Method
Chapter 4. The Laplace Tranform Method The Laplace Tranform i a tranformation, meaning that it change a function into a new function. Actually, it i a linear tranformation, becaue it convert a linear combination
More informationLINEAR ALGEBRA METHOD IN COMBINATORICS. Theorem 1.1 (Oddtown theorem). In a town of n citizens, no more than n clubs can be formed under the rules
LINEAR ALGEBRA METHOD IN COMBINATORICS 1 Warming-up example Theorem 11 (Oddtown theorem) In a town of n citizen, no more tha club can be formed under the rule each club have an odd number of member each
More informationReinforcement Learning
Reinforcement Learning Yihay Manour Google Inc. & Tel-Aviv Univerity Outline Goal of Reinforcement Learning Mathematical Model (MDP) Planning Learning Current Reearch iue 2 Goal of Reinforcement Learning
More informationRELIABILITY OF REPAIRABLE k out of n: F SYSTEM HAVING DISCRETE REPAIR AND FAILURE TIMES DISTRIBUTIONS
www.arpapre.com/volume/vol29iue1/ijrras_29_1_01.pdf RELIABILITY OF REPAIRABLE k out of n: F SYSTEM HAVING DISCRETE REPAIR AND FAILURE TIMES DISTRIBUTIONS Sevcan Demir Atalay 1,* & Özge Elmataş Gültekin
More informationChapter Landscape of an Optimization Problem. Local Search. Coping With NP-Hardness. Gradient Descent: Vertex Cover
Coping With NP-Hardne Chapter 12 Local Search Q Suppoe I need to olve an NP-hard problem What hould I do? A Theory ay you're unlikely to find poly-time algorithm Mut acrifice one of three deired feature
More information3.1 The Revised Simplex Algorithm. 3 Computational considerations. Thus, we work with the following tableau. Basic observations = CARRY. ... m.
3 Computational conideration In what follow, we analyze the complexity of the Simplex algorithm more in detail For thi purpoe, we focu on the update proce in each iteration of thi procedure Clearly, ince,
More informationChapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 7 Network Flow Slide by Kevin Wayne. Copyright 5 Pearon-Addion Weley. All right reerved. Soviet Rail Network, 55 Reference: On the hitory of the tranportation and maximum flow problem. Alexander
More informationNew bounds for Morse clusters
New bound for More cluter Tamá Vinkó Advanced Concept Team, European Space Agency, ESTEC Keplerlaan 1, 2201 AZ Noordwijk, The Netherland Tama.Vinko@ea.int and Arnold Neumaier Fakultät für Mathematik, Univerität
More informationChapter 7. Network Flow. CS 350: Winter 2018
Chapter 7 Network Flow CS 3: Winter 1 1 Soviet Rail Network, Reference: On the hitory of the tranportation and maximum flow problem. Alexander Schrijver in Math Programming, 1: 3,. Maximum Flow and Minimum
More informationDiscrete Optimization 2010 Lecture 3 Maximum Flows
Remainder: Shortest Paths Maximum Flows Discrete Optimization 2010 Lecture 3 Maximum Flows Marc Uetz University of Twente m.uetz@utwente.nl Lecture 3: sheet 1 / 29 Marc Uetz Discrete Optimization Outline
More informationDepartment of Mechanical Engineering Massachusetts Institute of Technology Modeling, Dynamics and Control III Spring 2002
Department of Mechanical Engineering Maachuett Intitute of Technology 2.010 Modeling, Dynamic and Control III Spring 2002 SOLUTIONS: Problem Set # 10 Problem 1 Etimating tranfer function from Bode Plot.
More informationBreadth First Search, Dijkstra s Algorithm for Shortest Paths
CS 374: Algorithms & Models of Computation, Spring 2017 Breadth First Search, Dijkstra s Algorithm for Shortest Paths Lecture 17 March 1, 2017 Chandra Chekuri (UIUC) CS374 1 Spring 2017 1 / 42 Part I Breadth
More informationThe machines in the exercise work as follows:
Tik-79.148 Spring 2001 Introduction to Theoretical Computer Science Tutorial 9 Solution to Demontration Exercie 4. Contructing a complex Turing machine can be very laboriou. With the help of machine chema
More informationc n b n 0. c k 0 x b n < 1 b k b n = 0. } of integers between 0 and b 1 such that x = b k. b k c k c k
1. Exitence Let x (0, 1). Define c k inductively. Suppoe c 1,..., c k 1 are already defined. We let c k be the leat integer uch that x k An eay proof by induction give that and for all k. Therefore c n
More informationZ a>2 s 1n = X L - m. X L = m + Z a>2 s 1n X L = The decision rule for this one-tail test is
M09_BERE8380_12_OM_C09.QD 2/21/11 3:44 PM Page 1 9.6 The Power of a Tet 9.6 The Power of a Tet 1 Section 9.1 defined Type I and Type II error and their aociated rik. Recall that a repreent the probability
More informationLecture 7: Testing Distributions
CSE 5: Sublinear (and Streaming) Algorithm Spring 014 Lecture 7: Teting Ditribution April 1, 014 Lecturer: Paul Beame Scribe: Paul Beame 1 Teting Uniformity of Ditribution We return today to property teting
More informationPartha Sarathi Mandal
MA 252: Data Structures and Algorithms Lecture 32 http://www.iitg.ernet.in/psm/indexing_ma252/y12/index.html Partha Sarathi Mandal Dept. of Mathematics, IIT Guwahati The All-Pairs Shortest Paths Problem
More informationChip-firing game and a partial Tutte polynomial for Eulerian digraphs
Chip-firing game and a partial Tutte polynomial for Eulerian digraph Kévin Perrot Aix Mareille Univerité, CNRS, LIF UMR 7279 3288 Mareille cedex 9, France. kevin.perrot@lif.univ-mr.fr Trung Van Pham Intitut
More informationPreemptive scheduling on a small number of hierarchical machines
Available online at www.ciencedirect.com Information and Computation 06 (008) 60 619 www.elevier.com/locate/ic Preemptive cheduling on a mall number of hierarchical machine György Dóa a, Leah Eptein b,
More informationCS 170: Midterm Exam II University of California at Berkeley Department of Electrical Engineering and Computer Sciences Computer Science Division
1 1 April 000 Demmel / Shewchuk CS 170: Midterm Exam II Univerity of California at Berkeley Department of Electrical Engineering and Computer Science Computer Science Diviion hi i a cloed book, cloed calculator,
More informationList coloring hypergraphs
Lit coloring hypergraph Penny Haxell Jacque Vertraete Department of Combinatoric and Optimization Univerity of Waterloo Waterloo, Ontario, Canada pehaxell@uwaterloo.ca Department of Mathematic Univerity
More informationCS 6301 PROGRAMMING AND DATA STRUCTURE II Dept of CSE/IT UNIT V GRAPHS
UNIT V GRAPHS Representation of Graphs Breadth-first search Depth-first search Topological sort Minimum Spanning Trees Kruskal and Prim algorithm Shortest path algorithm Dijkstra s algorithm Bellman-Ford
More informationAlgorithms Booklet. 1 Graph Searching. 1.1 Breadth First Search
Algorithms Booklet 2010 Note: in all algorithms, unless stated otherwise, the input graph G is represented by adjacency lists. 1 Graph Searching 1.1 Breadth First Search Algorithm 1: BFS(G, s) Input: G
More informationLaplace Transformation
Univerity of Technology Electromechanical Department Energy Branch Advance Mathematic Laplace Tranformation nd Cla Lecture 6 Page of 7 Laplace Tranformation Definition Suppoe that f(t) i a piecewie continuou
More informationA Constraint Propagation Algorithm for Determining the Stability Margin. The paper addresses the stability margin assessment for linear systems
A Contraint Propagation Algorithm for Determining the Stability Margin of Linear Parameter Circuit and Sytem Lubomir Kolev and Simona Filipova-Petrakieva Abtract The paper addree the tability margin aement
More informationMath 273 Solutions to Review Problems for Exam 1
Math 7 Solution to Review Problem for Exam True or Fale? Circle ONE anwer for each Hint: For effective tudy, explain why if true and give a counterexample if fale (a) T or F : If a b and b c, then a c
More informationMarch 18, 2014 Academic Year 2013/14
POLITONG - SHANGHAI BASIC AUTOMATIC CONTROL Exam grade March 8, 4 Academic Year 3/4 NAME (Pinyin/Italian)... STUDENT ID Ue only thee page (including the back) for anwer. Do not ue additional heet. Ue of
More informationA Study on Simulating Convolutional Codes and Turbo Codes
A Study on Simulating Convolutional Code and Turbo Code Final Report By Daniel Chang July 27, 2001 Advior: Dr. P. Kinman Executive Summary Thi project include the deign of imulation of everal convolutional
More informationOptimizing Cost-sensitive Trust-negotiation Protocols
Optimizing Cot-enitive Trut-negotiation Protocol Weifeng Chen, Lori Clarke, Jim Kuroe, Don Towley Department of Computer Science Univerity of Maachuett, Amhert {chenwf, clarke, kuroe, towley}@c.uma.edu
More informationLinear Motion, Speed & Velocity
Add Important Linear Motion, Speed & Velocity Page: 136 Linear Motion, Speed & Velocity NGSS Standard: N/A MA Curriculum Framework (006): 1.1, 1. AP Phyic 1 Learning Objective: 3.A.1.1, 3.A.1.3 Knowledge/Undertanding
More informationAdvanced methods for ODEs and DAEs
Lecture : Implicit Runge Kutta method Bojana Roić, 9. April 7 What you need to know before thi lecture numerical integration: Lecture from ODE iterative olver: Lecture 5-8 from ODE 9. April 7 Bojana Roić
More informationSymmetric Determinantal Representation of Formulas and Weakly Skew Circuits
Contemporary Mathematic Symmetric Determinantal Repreentation of Formula and Weakly Skew Circuit Bruno Grenet, Erich L. Kaltofen, Pacal Koiran, and Natacha Portier Abtract. We deploy algebraic complexity
More informationCHAPTER 6. Estimation
CHAPTER 6 Etimation Definition. Statitical inference i the procedure by which we reach a concluion about a population on the bai of information contained in a ample drawn from that population. Definition.
More informationUndirected Graphs. V = { 1, 2, 3, 4, 5, 6, 7, 8 } E = { 1-2, 1-3, 2-3, 2-4, 2-5, 3-5, 3-7, 3-8, 4-5, 5-6 } n = 8 m = 11
Undirected Graphs Undirected graph. G = (V, E) V = nodes. E = edges between pairs of nodes. Captures pairwise relationship between objects. Graph size parameters: n = V, m = E. V = {, 2, 3,,,, 7, 8 } E
More informationConvex Hulls of Curves Sam Burton
Convex Hull of Curve Sam Burton 1 Introduction Thi paper will primarily be concerned with determining the face of convex hull of curve of the form C = {(t, t a, t b ) t [ 1, 1]}, a < b N in R 3. We hall
More informationMoment of Inertia of an Equilateral Triangle with Pivot at one Vertex
oment of nertia of an Equilateral Triangle with Pivot at one Vertex There are two wa (at leat) to derive the expreion f an equilateral triangle that i rotated about one vertex, and ll how ou both here.
More informationMath 334 Fall 2011 Homework 10 Solutions
Nov. 5, Math 334 Fall Homework Solution Baic Problem. Expre the following function uing the unit tep function. And ketch their graph. < t < a g(t = < t < t > t t < b g(t = t Solution. a We
More informationSOME RESULTS ON INFINITE POWER TOWERS
NNTDM 16 2010) 3, 18-24 SOME RESULTS ON INFINITE POWER TOWERS Mladen Vailev - Miana 5, V. Hugo Str., Sofia 1124, Bulgaria E-mail:miana@abv.bg Abtract To my friend Kratyu Gumnerov In the paper the infinite
More informationNCAAPMT Calculus Challenge Challenge #3 Due: October 26, 2011
NCAAPMT Calculu Challenge 011 01 Challenge #3 Due: October 6, 011 A Model of Traffic Flow Everyone ha at ome time been on a multi-lane highway and encountered road contruction that required the traffic
More information4. Connectivity Connectivity Connectivity. Whitney's s connectivity theorem: (G) (G) (G) for special
4. Connectivity 4.. Connectivity Vertex-cut and vertex-connectivity Edge-cut and edge-connectivty Whitney' connectivity theorem: Further theorem for the relation of and graph 4.. The Menger Theorem and
More informationEfficient Computation of Shortest Paths in Time-Dependent Multi-Modal Networks 1
A 1 2 Efficient Computation of Shortet Path in Time-Dependent Multi-Modal Network 1 DOMINIK KIRCHLER, LIX, École Polytechnique; LIPN, Univ. Pari 13; Mediamobile, Ivry Sur Seine LEO LIBERTI, LIX, École
More informationCompetitive Analysis of Task Scheduling Algorithms on a Fault-Prone Machine and the Impact of Resource Augmentation
Competitive Analyi of Tak Scheduling Algorithm on a Fault-Prone Machine and the Impact of Reource Augmentation Antonio Fernández Anta a, Chryi Georgiou b, Dariuz R. Kowalki c, Elli Zavou a,d,1 a Intitute
More informationA Full-Newton Step Primal-Dual Interior Point Algorithm for Linear Complementarity Problems *
ISSN 76-7659, England, UK Journal of Information and Computing Science Vol 5, No,, pp 35-33 A Full-Newton Step Primal-Dual Interior Point Algorithm for Linear Complementarity Problem * Lipu Zhang and Yinghong
More informationTheoretical Computer Science. Optimal algorithms for online scheduling with bounded rearrangement at the end
Theoretical Computer Science 4 (0) 669 678 Content lit available at SciVere ScienceDirect Theoretical Computer Science journal homepage: www.elevier.com/locate/tc Optimal algorithm for online cheduling
More informationA SIMPLE NASH-MOSER IMPLICIT FUNCTION THEOREM IN WEIGHTED BANACH SPACES. Sanghyun Cho
A SIMPLE NASH-MOSER IMPLICIT FUNCTION THEOREM IN WEIGHTED BANACH SPACES Sanghyun Cho Abtract. We prove a implified verion of the Nah-Moer implicit function theorem in weighted Banach pace. We relax the
More informationJul 4, 2005 turbo_code_primer Revision 0.0. Turbo Code Primer
Jul 4, 5 turbo_code_primer Reviion. Turbo Code Primer. Introduction Thi document give a quick tutorial on MAP baed turbo coder. Section develop the background theory. Section work through a imple numerical
More informationCS367 Lecture 3 (old lectures 5-6) APSP variants: Node Weights, Earliest Arrivals, Bottlenecks Scribe: Vaggos Chatziafratis Date: October 09, 2015
CS367 Lecture 3 (old lectures 5-6) APSP variants: Node Weights, Earliest Arrivals, Bottlenecks Scribe: Vaggos Chatziafratis Date: October 09, 2015 1 The Distance Product Last time we defined the distance
More informationLayering as Optimization Decomposition
TLEN7000/ECEN7002: Analytical Foundation of Network Layering a Optimization Decompoition Lijun Chen 11/29/2012 The Internet Compleity i ever increaing Large in ize and cope Enormou heterogeneity Incomplete
More informationRoot Locus Diagram. Root loci: The portion of root locus when k assume positive values: that is 0
Objective Root Locu Diagram Upon completion of thi chapter you will be able to: Plot the Root Locu for a given Tranfer Function by varying gain of the ytem, Analye the tability of the ytem from the root
More informationA faster algorithm for the single source shortest path problem with few distinct positive lengths
A faster algorithm for the single source shortest path problem with few distinct positive lengths J. B. Orlin, K. Madduri, K. Subramani, and M. Williamson Journal of Discrete Algorithms 8 (2010) 189 198.
More informationMatching. Slides designed by Kevin Wayne.
Maching Maching. Inpu: undireced graph G = (V, E). M E i a maching if each node appear in a mo edge in M. Max maching: find a max cardinaliy maching. Slide deigned by Kevin Wayne. Biparie Maching Biparie
More informationChapter 8 Dynamic Programming
Chapter 8 Dynamic Programming Copyright 2007 Pearson Addison-Wesley. All rights reserved. Dynamic Programming Dynamic Programming is a general algorithm design technique for solving problems defined by
More informationAlgorithm Design and Analysis
Algorithm Design and Analysis LECTURE 7 Greedy Graph Algorithms Shortest paths Minimum Spanning Tree Sofya Raskhodnikova 9/14/016 S. Raskhodnikova; based on slides by E. Demaine, C. Leiserson, A. Smith,
More informationCumulative Review of Calculus
Cumulative Review of Calculu. Uing the limit definition of the lope of a tangent, determine the lope of the tangent to each curve at the given point. a. f 5,, 5 f,, f, f 5,,,. The poition, in metre, of
More informationSocial Studies 201 Notes for March 18, 2005
1 Social Studie 201 Note for March 18, 2005 Etimation of a mean, mall ample ize Section 8.4, p. 501. When a reearcher ha only a mall ample ize available, the central limit theorem doe not apply to the
More informationIEOR 3106: Fall 2013, Professor Whitt Topics for Discussion: Tuesday, November 19 Alternating Renewal Processes and The Renewal Equation
IEOR 316: Fall 213, Profeor Whitt Topic for Dicuion: Tueday, November 19 Alternating Renewal Procee and The Renewal Equation 1 Alternating Renewal Procee An alternating renewal proce alternate between
More informationMINITAB Stat Lab 3
MINITAB Stat 20080 Lab 3. Statitical Inference In the previou lab we explained how to make prediction from a imple linear regreion model and alo examined the relationhip between the repone and predictor
More information