{"id":1196,"date":"2017-01-24T01:52:15","date_gmt":"2017-01-24T01:52:15","guid":{"rendered":"https:\/\/courses.lumenlearning.com\/waymakermath4libarts\/?post_type=chapter&#038;p=1196"},"modified":"2021-02-05T23:49:32","modified_gmt":"2021-02-05T23:49:32","slug":"putting-it-together-graph-theory","status":"web-only","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/chapter\/putting-it-together-graph-theory\/","title":{"raw":"Putting It Together: Graph Theory","rendered":"Putting It Together: Graph Theory"},"content":{"raw":"At the start of this module, you were thinking about finding the fastest route from one client to another. \u00a0Thankfully, now you know how to use graph theory to figure it out. \u00a0Take another look at the diagram. \u00a0Now you know it is a graph in which each vertex represents a client and each edge represents a path between clients. \u00a0The numbers, or weights, indicate the length of time (minutes) required to travel from one vertex to another.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165259\/graph1.png\"><img class=\"wp-image-2369 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165259\/graph1-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units.\" width=\"521\" height=\"375\" \/><\/a>\r\n\r\nOne vertex, A, is degree 1. Some vertices are degree 2, such as C and E, and H. \u00a0Others are degree 3, such as D and G. Still others are degree 4, such as B, F, and I. \u00a0What does that mean for you? \u00a0It means that there are multiple paths leading from each client and several different routes you can take traveling from one to the other.\r\n\r\nYou were faced with the problem of having to get from Client G to Client C using the fastest route. \u00a0Start by marking the ending vertex with a time of 0. \u00a0Then find all vertices leading to the current vertex. \u00a0Calculate their distances to the end.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165408\/graph2.png\"><img class=\"wp-image-2371 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165408\/graph2-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, and 7 by B.\" width=\"521\" height=\"375\" \/><\/a>\r\n\r\nMark C as visited, and mark the vertex with the smallest recorded time as current. \u00a0So B will be designated current. \u00a0Again find all vertices leading to the current vertex. \u00a0For each vertex leading to B, and not to a visited vertex, find the time from the end.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165457\/graph3.png\"><img class=\"wp-image-2373 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165457\/graph3-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, 7 by B, 27 by F, 15 by A, and 17 by I.\" width=\"521\" height=\"375\" \/><\/a>\r\n\r\nMark B as visited, and mark the vertex with the smallest recorded time as current. \u00a0So D will be designated current. \u00a0Add CD to DE, 10 + 8 = 18.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165621\/graph4.png\"><img class=\"aligncenter wp-image-2375\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165621\/graph4-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, 7 by B, 27 by F, 15 by A, 17 by I, and 18 by E.\" width=\"521\" height=\"375\" \/><\/a>\r\n\r\nCompare the time at E with that at I. \u00a0The time at I is lower so mark E as visited, and mark I as current. \u00a0So C to G through I has a total of 32 minutes. \u00a0But the time at H is only 22 minutes. \u00a0Since it is lower, keep going. Mark I as visited and H as current. \u00a0The total time from C to G through H is 27 minutes. \u00a0This is the fastest route.\r\n\r\n<a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165656\/graph5.png\"><img class=\"aligncenter wp-image-2376\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165656\/graph5-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, 7 by B, 25 by F, 15 by A, 17 by I, 18 by E, 27 by G, and 22 by H.\" width=\"521\" height=\"375\" \/><\/a>\r\n\r\n&nbsp;\r\n\r\nSo it will take you 27 minutes to get back to Client C to pick up your sample. \u00a0It may have looked as if a different route, perhaps D, would have been faster but it turns out not to be the case. \u00a0Using the graph confirmed the best route.\r\n\r\nNow you have to get all the way to your next client at H. \u00a0You can tell by the work you have already done that the fast route back to H is from C to B to I to H. \u00a0And how long will that take? \u00a0It will take a speedy 22 minutes. \u00a0Drawing a graph may seem complex, but in the end it really helps you make definite calculations rather than estimating. \u00a0And that can mean the difference between closing the deal or missing the client altogether.\r\n\r\n&nbsp;","rendered":"<p>At the start of this module, you were thinking about finding the fastest route from one client to another. \u00a0Thankfully, now you know how to use graph theory to figure it out. \u00a0Take another look at the diagram. \u00a0Now you know it is a graph in which each vertex represents a client and each edge represents a path between clients. \u00a0The numbers, or weights, indicate the length of time (minutes) required to travel from one vertex to another.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165259\/graph1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2369 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165259\/graph1-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units.\" width=\"521\" height=\"375\" \/><\/a><\/p>\n<p>One vertex, A, is degree 1. Some vertices are degree 2, such as C and E, and H. \u00a0Others are degree 3, such as D and G. Still others are degree 4, such as B, F, and I. \u00a0What does that mean for you? \u00a0It means that there are multiple paths leading from each client and several different routes you can take traveling from one to the other.<\/p>\n<p>You were faced with the problem of having to get from Client G to Client C using the fastest route. \u00a0Start by marking the ending vertex with a time of 0. \u00a0Then find all vertices leading to the current vertex. \u00a0Calculate their distances to the end.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165408\/graph2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2371 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165408\/graph2-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, and 7 by B.\" width=\"521\" height=\"375\" \/><\/a><\/p>\n<p>Mark C as visited, and mark the vertex with the smallest recorded time as current. \u00a0So B will be designated current. \u00a0Again find all vertices leading to the current vertex. \u00a0For each vertex leading to B, and not to a visited vertex, find the time from the end.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165457\/graph3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2373 aligncenter\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165457\/graph3-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, 7 by B, 27 by F, 15 by A, and 17 by I.\" width=\"521\" height=\"375\" \/><\/a><\/p>\n<p>Mark B as visited, and mark the vertex with the smallest recorded time as current. \u00a0So D will be designated current. \u00a0Add CD to DE, 10 + 8 = 18.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165621\/graph4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2375\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165621\/graph4-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, 7 by B, 27 by F, 15 by A, 17 by I, and 18 by E.\" width=\"521\" height=\"375\" \/><\/a><\/p>\n<p>Compare the time at E with that at I. \u00a0The time at I is lower so mark E as visited, and mark I as current. \u00a0So C to G through I has a total of 32 minutes. \u00a0But the time at H is only 22 minutes. \u00a0Since it is lower, keep going. Mark I as visited and H as current. \u00a0The total time from C to G through H is 27 minutes. \u00a0This is the fastest route.<\/p>\n<p><a href=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165656\/graph5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2376\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/1141\/2017\/03\/29165656\/graph5-300x216.png\" alt=\"Graph diagram connects locations A through E. A connects to B by 8 units, B to C by 8 units, C to D by 10 units, D to E by 8 units, E to F by 7 units, F to G by 5 units, G to H by 5 units, and H to I by 5 units. In addition, B connects to D by 14 units, B to F by 20 units, F to I by 15 units, and G to I by 12 units. A red 0 is placed near C, 10 by D, 7 by B, 25 by F, 15 by A, 17 by I, 18 by E, 27 by G, and 22 by H.\" width=\"521\" height=\"375\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>So it will take you 27 minutes to get back to Client C to pick up your sample. \u00a0It may have looked as if a different route, perhaps D, would have been faster but it turns out not to be the case. \u00a0Using the graph confirmed the best route.<\/p>\n<p>Now you have to get all the way to your next client at H. \u00a0You can tell by the work you have already done that the fast route back to H is from C to B to I to H. \u00a0And how long will that take? \u00a0It will take a speedy 22 minutes. \u00a0Drawing a graph may seem complex, but in the end it really helps you make definite calculations rather than estimating. \u00a0And that can mean the difference between closing the deal or missing the client altogether.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":21,"menu_order":24,"template":"","meta":{"_candela_citation":"[]","CANDELA_OUTCOMES_GUID":"047c0561-dd6c-461a-8ab1-481920e0c38e","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1196","chapter","type-chapter","status-web-only","hentry"],"part":1193,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/chapters\/1196","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/wp\/v2\/users\/21"}],"version-history":[{"count":7,"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/chapters\/1196\/revisions"}],"predecessor-version":[{"id":2378,"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/chapters\/1196\/revisions\/2378"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/parts\/1193"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/chapters\/1196\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/wp\/v2\/media?parent=1196"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/pressbooks\/v2\/chapter-type?post=1196"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/wp\/v2\/contributor?post=1196"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/slcc-mathforliberalartscorequisite\/wp-json\/wp\/v2\/license?post=1196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}