retagged by
72,868 views
150 votes
150 votes
Two transactions $T_1$ and $T_2$ are given as

$T_1:r_1(X)w_1(X)r_1(Y)w_1(Y)$

$T_2:r_2(Y)w_2(Y)r_2(Z)w_2(Z)$

where $r_i(V)$ denotes a $\textit{read}$ operation by transaction $T_i$ on a variable $V$ and $w_i(V)$ denotes a $\textit{write}$ operation by transaction $T_i$ on a variable $V$. The total number of conflict serializable schedules that can be formed by $T_1$ and $T_2$ is ______
retagged by

18 Answers

0 votes
0 votes
Is ans 8?
0 votes
0 votes

If the Precedence graph of a schedule is not $acyclic$ then, that schedule is not conflict serializable schedule and it is not conflict equal to any of the serial schedule:

There are only possible two serial schedules $T1 -> T2$ and $T2 -> T1$ so a conflict serializable schedule should equal to either of the serial schedule:

0 votes
0 votes

 

for T2 --> T1

1-  First of all execute R(Y)W(Y) of second transaction. Find total transactions possible for remaining operations. (15)

2.  Execute R(Y)W(Y) of first transaction at the last and find total transaction for remaining operations. (15)

3. Now couple first two operations of both transaction and find total no. of possible transaction.(6) Do same for

    last two operations. Multiply both(36 total). Now remove the transaction which are repeated or already occurred

     in 1 and 2. (1+6+6)

    total = 15+15+36-6-6-1 = 53

for T1 --> T2

 only 1 possible.

total = 53+1 = 54 ans.

Answer:

Related questions

31 votes
31 votes
5 answers
1
Madhav asked Feb 14, 2017
10,985 views
In a B+ Tree , if the search-key value is $8$ bytes long , the block size is $512$ bytes and the pointer size is $2\;\text{B}$ , then the maximum order of the B+ Tree is ...
44 votes
44 votes
3 answers
2
Arjun asked Feb 14, 2017
16,234 views
Consider the following database table named $\text{top_scorer}$.$$\overset{\text{top_scorer}}{\begin{array}{|c|c|c|}\hline\\\textbf{player}& \textbf{country}& \textbf...
63 votes
63 votes
6 answers
3
Madhav asked Feb 14, 2017
18,432 views
Consider the following tables $T1$ and $T2.$$$\overset{T1}{\begin{array}{|c|c|c|} \hline \textbf {P} & \textbf {Q} \\\hline \text {2} & \text{2 }\\\hline \text{3} & \te...