{"id":177,"date":"2015-01-16T08:25:19","date_gmt":"2015-01-16T15:25:19","guid":{"rendered":"https:\/\/blogs.ubc.ca\/cpsc320\/?p=177"},"modified":"2015-01-16T08:25:19","modified_gmt":"2015-01-16T15:25:19","slug":"slides-5-graphs-intro","status":"publish","type":"post","link":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/2015\/01\/16\/slides-5-graphs-intro\/","title":{"rendered":"Slides #5: Graphs Intro"},"content":{"rendered":"<p>Today&#8217;s <a href=\"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/files\/2015\/01\/2015-01-16-notes.pdf\">playing with graphs handout<\/a>\u00a0(in PDF).<\/p>\n<p>We had reading questions on graphs as well:<\/p>\n<ul>\n<li>8AM: &#8220;If we start from the top node and always visit left children before right children where there&#8217;s a choice, which one would visit the node with the first (leftmost) digit of your student number on it first, depth-first search or breadth-first search?&#8221; In:<a href=\"https:\/\/blogs.ubc.ca\/cpsc320\/files\/2015\/01\/rq-bfs-dfs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-184 size-medium\" src=\"https:\/\/blogs.ubc.ca\/cpsc320\/files\/2015\/01\/rq-bfs-dfs-219x300.png\" alt=\"\" width=\"219\" height=\"300\" \/><\/a><\/li>\n<li>11AM: &#8220;A tree is a particular type of graph. If we consider the node numbered by the first (leftmost) digit of your student ID the root, is this graph a tree?&#8221; In:<a href=\"https:\/\/blogs.ubc.ca\/cpsc320\/files\/2015\/01\/rq-rooted-tree.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-185\" src=\"https:\/\/blogs.ubc.ca\/cpsc320\/files\/2015\/01\/rq-rooted-tree-300x162.png\" alt=\"\" width=\"300\" height=\"162\" \/><\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s playing with graphs handout\u00a0(in PDF). We had reading questions on graphs as well: 8AM: &#8220;If we start from the top node and always visit left children before right children where there&#8217;s a choice, which one would visit the node with the first (leftmost) digit of your student number on it first, depth-first search or [&hellip;]<\/p>\n","protected":false},"author":7560,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[318531],"tags":[],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-handouts"],"_links":{"self":[{"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/users\/7560"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":0,"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ubc.ca\/cpsc3202014w2\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}