diff --git a/source-code/Pseudocode/dynamic-programming/dynamic-programming.png b/source-code/Pseudocode/dynamic-programming/dynamic-programming.png index 1c7d944..1eabf9a 100644 Binary files a/source-code/Pseudocode/dynamic-programming/dynamic-programming.png and b/source-code/Pseudocode/dynamic-programming/dynamic-programming.png differ diff --git a/source-code/Pseudocode/dynamic-programming/dynamic-programming.tex b/source-code/Pseudocode/dynamic-programming/dynamic-programming.tex index 6948b8d..ec6c720 100644 --- a/source-code/Pseudocode/dynamic-programming/dynamic-programming.tex +++ b/source-code/Pseudocode/dynamic-programming/dynamic-programming.tex @@ -23,7 +23,8 @@ \Statex Actions $\mathcal{A} = \{1, \dots, n_a\},\qquad A: \mathcal{X} \Rightarrow \mathcal{A}$ \Statex Cost function $g: \mathcal{X} \times \mathcal{A} \rightarrow \mathbb{R}$ \Statex Horizon $N$ - \Procedure{DynamicProgramming}{$\mathcal{X}$, $A$, $g$, $N$} + \Statex Discounting factor $\alpha \in [0, 1]$ + \Procedure{DynamicProgramming}{$\mathcal{X}$, $A$, $g$, $N$, $\alpha$} \State $J_N(x) \gets g_N(x) \quad \forall x \in \mathcal{X}$ \For{$k = N - 1$ to $0$} \For{$x \in \mathcal{X}$}