-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexercise-sheet-0.Rmd
58 lines (36 loc) · 991 Bytes
/
exercise-sheet-0.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
title: "Exercise sheet 0: Math"
---
---------------------------------
# Exercise 1 - Recursions
### 1a)
Given the recursive Formulation, fill in the array underneath:
$$
a_{n} = a_{n-1} + d, \quad \forall n : 0 < n < x
$$
```{r, echo=FALSE}
htmltools::includeHTML("html/linearRecursion.html")
```
### 1b)
Given the recursive formulation, fill in the missing cell underneath:
:::: {#explaining .message-box }
::: {#note-exp .note-header}
```{r, include=knitr::is_html_output(), echo=FALSE,}
knitr::include_graphics("figures/infoicon.svg")
```
**Note**
:::
::: {#note-exp .note-body}
During the course of Bioinformatics we will use $i$ as the row and $j$ as the
column index
:::
::::
$$
D_{i, j} = max (D_{i-1. j-1} + 2, D_{i-1, j} + 3, D_{i, j-1} + 1)\ , \quad \forall i, j : i \ge j > 1
$$
```{r, echo=FALSE}
htmltools::includeHTML("html/matrixMax.html")
```
```{r, echo=FALSE}
htmltools::tags$script(src = "assets/js/recursions.js", type= "text/javascript")
```