MAT344H1 Lecture Notes - Lecture 11: Negative Number

43 views1 pages
2 Nov 2018
School
Department
Course
Professor

Document Summary

Length of a path (in this context) = sum of the cost of all edges along the path. We can define an algorithm that always give best possible answers. The idea is to start by learning shortest paths to nearby vertices and. Each vertex b is labelled with (x, a), where x is the last step vertex from i to j and a is the length of the shortest path from i to b. To label the graph, let m = 0. If any vertex b is adjacent to a labelled vertex w= (?, d(w)) and k(w, v) + d(w) = m. After having labelled all vertices this way, m = m+1 and we repeat. In the example, we label i by (-, 0), and label c by (i, 1) .

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents