{"id":777,"date":"2016-02-25T12:15:59","date_gmt":"2016-02-25T17:15:59","guid":{"rendered":"http:\/\/codefork.com\/blog\/?p=777"},"modified":"2016-02-25T12:18:19","modified_gmt":"2016-02-25T17:18:19","slug":"algorithms-i-notes-in-week-5","status":"publish","type":"post","link":"https:\/\/codefork.com\/blog\/index.php\/2016\/02\/25\/algorithms-i-notes-in-week-5\/","title":{"rendered":"Algorithms I: Notes in Week 5"},"content":{"rendered":"<p>Scattered thoughts:<\/p>\n<p>A course on learning a programming language will help answer the question, &#8220;how do I do X?&#8221; The fun thing about an algorithms course is that the question is &#8220;how do I do X within certain parameters of time and space?&#8221; <\/p>\n<p>In the real world, the two questions are actually one and the same. I&#8217;ve just come away from a project that had serious scalability problems, because many of its features could handle only very small sets of data used in development; when the app was run against live data, things stopped working because they would hit a timeout limit or processes would run out of memory.<\/p>\n<p>I&#8217;m learning quickly that I can often intuit the &#8220;shape&#8221; of how an algorithm will perform, and I now have better language for describing this, but I&#8217;m not so good at calculating precisely the order of growth for even slightly complex code. It&#8217;s hard!<\/p>\n<p>One paranoia-inducing aspect of programming assignments: for week 4&#8217;s assignment, a single timing test (1 out of 17) failed for my code because it took too long to finish. It&#8217;s hard to figure out&#8230; does this single failure expose a flaw in my overall implementation (if so, why did the other 16 pass)? Or was this last test thrown in as a &#8220;bonus&#8221; involving a difficult set of inputs that would require further optimization if you wanted to get full points? This is a tricky thing to assess as a student, and something only a human being would be able to tell you.<\/p>\n<p>Trees are truly magical. I feel like I&#8217;ve barely started to grasp their many applications.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scattered thoughts: A course on learning a programming language will help answer the question, &#8220;how do I do X?&#8221; The fun thing about an algorithms course is that the question is &#8220;how do I do X within certain parameters of time and space?&#8221; In the real world, the two questions are actually one and the &hellip; <a href=\"https:\/\/codefork.com\/blog\/index.php\/2016\/02\/25\/algorithms-i-notes-in-week-5\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Algorithms I: Notes in Week 5&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,14,9],"tags":[],"class_list":["post-777","post","type-post","status-publish","format-standard","hentry","category-compsci","category-java","category-software"],"_links":{"self":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=777"}],"version-history":[{"count":7,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":785,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions\/785"}],"wp:attachment":[{"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codefork.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}