{"id":40240,"date":"2020-10-08T00:16:11","date_gmt":"2020-10-08T00:16:11","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=40240"},"modified":"2020-10-08T00:16:13","modified_gmt":"2020-10-08T00:16:13","slug":"computer-science-depth-first-search","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/computer-science-depth-first-search\/","title":{"rendered":"Computer science: depth-first search"},"content":{"rendered":"\n<h2>Self-tutoring about computer science: the tutor mentions depth-first search (DFS).<\/h2>\n<p>\nIn <a href=\"https:\/\/www.oracletutoring.ca\/blog\/computer-science-breadth-first-search\/\">yesterday&#8217;s post<\/a> I mention breadth-first search. Now, to compare, I continue with depth-first.<\/p>\n<p>\nWith depth-first search, if you have three rooms to search, you&#8217;ll search everywhere in the first room before moving to the next one. In a folder system, depth-first search will search a folder, then a subfolder of it, then a subfolder of that one, and so on, before it enters an adjacent folder of the first one it entered.<\/p>\n<p>Source:<\/p>\n<p>Goodrich, Michael T. and Roberto Tamassia. <em>Algorithm Design<\/em>. Hoboken: John Wiley &#038; Sons, 2002.<\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about computer science: the tutor mentions depth-first search (DFS). In yesterday&#8217;s post I mention breadth-first search. Now, to compare, I continue with depth-first. With depth-first search, if you have three rooms to search, you&#8217;ll search everywhere in the first &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/computer-science-depth-first-search\/\"> <span class=\"screen-reader-text\">Computer science: depth-first search<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-40240","post","type-post","status-publish","format-standard","hentry","category-computer-science"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/40240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=40240"}],"version-history":[{"count":3,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/40240\/revisions"}],"predecessor-version":[{"id":40243,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/40240\/revisions\/40243"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=40240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=40240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=40240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}