{"id":79105,"date":"2021-12-02T21:13:16","date_gmt":"2021-12-02T21:13:16","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/12\/02\/design-a-dynamic-programming-algorithm-to-calculate-the-average-height-of-a\/"},"modified":"2021-12-02T21:13:16","modified_gmt":"2021-12-02T21:13:16","slug":"design-a-dynamic-programming-algorithm-to-calculate-the-average-height-of-a","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/12\/02\/design-a-dynamic-programming-algorithm-to-calculate-the-average-height-of-a\/","title":{"rendered":"Design a dynamic programming algorithm to calculate the average height of a"},"content":{"rendered":"<p>Design a dynamic programming algorithm to calculate the average height of a binary search tree.<\/p>\n<p> The algorithm must solve the following problem:<\/p>\n<p> Input: a binary search tree T, with subtrees left[T] and right[T].<\/p>\n<p> Output: the average height (number of nodes on a simple path from root <\/p>\n<p> to leaf).<\/p>\n<p> Provide an explanation of how your algorithm works<\/p>\n<p> Formal pseudocode of the algorithm<\/p>\n<p> A proof that the algorithm is correct<\/p>\n<p> A symbolic runtime analysis of the algorithm<\/p>\n<p> Extend the solution you developed for problem 1 to find the length of the longest path in any directed, acyclic graphs (DAGs).<\/p>\n<p> The algorithm must solve the following problem:<\/p>\n<p> Input: A Dag, G(V, E).<\/p>\n<p> Output: the length of the longest path in G.<\/p>\n<p> Provide an explanation of how your algorithm works<\/p>\n<p> Formal pseudocode of the algorithm<\/p>\n<p> A proof that the algorithm is correct<\/p>\n<p> A symbolic runtime analysis of the algorithm<\/p>\n<p> Design an algorithm that solves the following decision problem:<\/p>\n<p> The algorithm must solve the following problem:<\/p>\n<p> Input: A Graph, G(V, E) and a vertex v \u2208 V.<\/p>\n<p> Output: YES if for every pair of vertices x and u, a path from x to u must pass through v; NO otherwise.<\/p>\n<p> Provide an explanation of how your algorithm works<\/p>\n<p> Formal pseudocode of the algorithm<\/p>\n<p> A proof that the algorithm is correct<\/p>\n<p> A symbolic runtime analysis of the algorithm<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Design a dynamic programming algorithm to calculate the average height of a binary search tree. The algorithm must solve the following problem: Input: a binary search tree T, with subtrees left[T] and right[T]. Output: the average height (number of nodes on a simple path from root to leaf). Provide an explanation of how your algorithm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-79105","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/79105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=79105"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/79105\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=79105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=79105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=79105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}