Consider a table \(T\), where the elements \(T[i][j], 0 \leq i, j \leq n\), represent the cost of the optimal solutions of different subproblems of a problem that is being solved using a dynamic programming algorithm. The recursive formulation to compute the table entries is as follows:\[\begin{array}{ll} T[0][k]=T[k][0]=1 & \text { for } k=0,1,2, \ldots, n \\ T[i][j]=2 T[i-1][j]+3 T[i][j-1] & \text { for } 1 \leq i, j \leq n \end{array}\]Consider the following two algorithms to compute entries of \(T\). Assume that for both the algorithms, for all \(0 \leq i, j \leq n, T[i][j]\) has been initialized to \(1\).\[\begin{aligned}
&\text{Algorithm } B_1: \\
&\quad \text{For } i = 1,2,\ldots,n \\
&\quad\quad \text{For } j = 1,2,\ldots,n \\
&\quad\quad\quad T[i][j] = 2T[i-1][j] + 3T[i][j-1] \\
&\text{Algorithm } B_2: \\
&\quad \text{For } s = 2,3,\ldots,2n \\
&\quad\quad \text{For } i = 1,2,\ldots,n \\
&\quad\quad\quad \text{For } j = 1,2,\ldots,n \\
&\quad\quad\quad\quad \text{If } i + j = = s \\
&\quad\quad\quad\quad\quad T[i][j] = 2T[i-1][j] + 3T[i][j-1]
\end{aligned}\]Algorithm \(B_{k}, k \in\{1,2\}\) is said to be correct if and only if it calculates the correct values of \(T[i][j]\), for all \(0 \leq i, j \leq n\), (as per the recursive formulation) at the end of the execution of the algorithm \(B_{k}\).Which one of the following statements is true?
- ABoth algorithms \(B_{1}\) and \(B_{2}\) are correct
- BAlgorithm \(B_{1}\) is correct, but algorithm \(B_{2}\) is incorrect
- CAlgorithm \(B_{2}\) is correct, but algorithm \(B_{1}\) is incorrect
- DBoth algorithms \(B_{1}\) and \(B_{2}\) are incorrect