Skip to content

Commit

Permalink
fixed formulae
Browse files Browse the repository at this point in the history
  • Loading branch information
domonik committed Nov 23, 2023
1 parent 63ad679 commit d40f3c1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions exercise-sheet-4.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,18 @@ Fill the dynamic programming matrices $D_{i,j}$, $Q_{i,j}$ and $P_{i,j}$ using t
##### Hide


##### Hint1: Init Formulae

##### Hint1: Formulae
\begin{align}
D_{0,0} &= 0 \\
D_{0, j} &= g(j) &\forall j: 0 < j \leq n \\
D_{i, 0} &= g(j) &\forall i: 0 < i \leq n \\
Q_{i, 0} &= -\infty &\forall i: 0 < i \leq n \\
P_{0, j} &= -\infty &\forall j: 0 < j \leq n
\end{align}


##### Hint2: Formulae

\begin{align}
g(k) &= \alpha + k * \beta \\
Expand All @@ -236,7 +246,7 @@ P_{i,j} &= max
\end{align}


##### Hint2: Add the missing values
##### Hint3: Add the missing values


```{r, include=FALSE}
Expand Down

0 comments on commit d40f3c1

Please sign in to comment.