Consider a table π, where the elements π[π][π], 0 β€π, πβ€π, 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:
π[0][π] = π[π][0] = 1 for π= 0,1,2, β¦ , π
π[π][π] = 2π[πβ1][π] + 3π[π][πβ1] for 1 β€π, πβ€π
Consider the following two algorithms to compute entries of π. Assume that for
both the algorithms, for all 0 β€π, πβ€π, π[π][π] has been initialized to 1.
Algorithm π΅π, πβ{1,2} is said to be correct if and only if it calculates the correct
values of π[π][π], for all 0 β€π, πβ€π, (as per the recursive formulation) at the end
of the execution of the algorithm π΅π.
Which one of the following statements is true?
A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?
