0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
7 Ansichten2 Seiten
This document describes how recursive dynamic programming works by showing an animated sequence of a cost function computation unfolding over time. It shows that a call is initiated with a colon and returns a value when it is resolved with a double colon. The goal is to compute the cost from index 1 to n by calling the cost function cmat. The cost between indices x and y is calculated as the minimum of the cost from x to i plus the cost from i+1 to y plus the product of values D at indices x, i, and y, iterating i from x to y-1.
This document describes how recursive dynamic programming works by showing an animated sequence of a cost function computation unfolding over time. It shows that a call is initiated with a colon and returns a value when it is resolved with a double colon. The goal is to compute the cost from index 1 to n by calling the cost function cmat. The cost between indices x and y is calculated as the minimum of the cost from x to i plus the cost from i+1 to y plus the product of values D at indices x, i, and y, iterating i from x to y-1.
Copyright:
Attribution Non-Commercial (BY-NC)
Verfügbare Formate
Als PPTX, PDF, TXT herunterladen oder online auf Scribd lesen
This document describes how recursive dynamic programming works by showing an animated sequence of a cost function computation unfolding over time. It shows that a call is initiated with a colon and returns a value when it is resolved with a double colon. The goal is to compute the cost from index 1 to n by calling the cost function cmat. The cost between indices x and y is calculated as the minimum of the cost from x to i plus the cost from i+1 to y plus the product of values D at indices x, i, and y, iterating i from x to y-1.
Copyright:
Attribution Non-Commercial (BY-NC)
Verfügbare Formate
Als PPTX, PDF, TXT herunterladen oder online auf Scribd lesen