Processing math: 100%
  • Exercise 1 - Recursions
    • 1a)
    • 1b)

Exercise 1 - Recursions

1a)

Given the recursive Formulation, fill in the array underneath:

an=an1+d,n:0<n<x




a0a1a2a3a4a5a6a7a8a9a10

1b)

Given the recursive formulation, fill in the missing cell underneath:

Note

During the course of Bioinformatics we will use i as the row and j as the column index

Di,j=max(Di1.j1+2,Di1,j+3,Di,j1+1) ,i,j:ij>1

Di,j12
1
2