1,836 views
2 votes
2 votes
Two transactions T1 and T2 are given as

T1:r1(A) w1(A) r1(B) w1(B) r1(C) w1(C)

T2:r2(B) w2(B) r2(C) w2(C) r2(D) w2(D)

The total number of conflicts serializable schedules that can be formed by T1 and T2 are _____

2 Answers

4 votes
4 votes

Before Solving this question, it is recommended to have a look on https://gateoverflow.in/247402

for clarity images https://drive.google.com/open?id=1SUxBvjlo3XvA0EcWBEDPwDMtxcI3PNXy

1 votes
1 votes

In $T_{1}\rightarrow T_{2}$

$T_{1}$ $T_{2}$
   
$r(A)$  
$w(A)$  
$r(B)$  
$w(B)$  
${\color{DarkRed} {r(C)}}$  
${\color{DarkRed} {w(C)}}$ ${\color{DarkRed} {r(B)}}$
  ${\color{DarkRed} {w(B)}}$
  $r(C)$
  $w(C)$
  $r(D)$
  $w(D)$
   

 

Here those colored $4$ transaction has no conflict

So, Number of conflict will be $=\frac{4!}{2!2!}=6$

We divided by $2!$ because $r(C),w(C)$ cannot combine among them

Similarly $r(B),w(B)$ cannot arrange among them.


Now for $T_{2}\rightarrow T_{1}$

Case $1:$

$r1(A),w1(A)$ has no conflict with any transaction of $T_{2}$

So, total conflict serializable schedule$=\frac{8!}{2!6!}=28$

Now for $r1(B),w1(B)$ has no conflict with $r2(C),w2(C)$,$r2(D),w2(D)$ of $T_{2}$

So, total conflict serializable schedule$=\frac{6!}{2!4!}=15$

Now for $r1(C),w1(C)$ has no conflict with $r2(D),w2(D)$

So, total conflict serializable schedule$=\frac{4!}{2!2!}=6$


Total number of conflict serializable schedule$=6+28+15+6=55$

Related questions

0 votes
0 votes
1 answer
1
Harsh Saini_1 asked Dec 27, 2023
401 views
How many total $Conflict$ $Serializable$ $Schedules$ are possible that can be formed by $T1$ and $T2?$$T1:$ $r_1(A)$ $r_1(B)$ $w_1(B)$$T2:$ $r_2(B)$ $r_2(A)$ $w_2(B)$
1 votes
1 votes
1 answer
2
rajoramanoj asked Jan 7, 2018
527 views
How many concurrent schedules are conflict serializable of given transactions T1 and T2:
7 votes
7 votes
5 answers
3
shivanisrivarshini asked Jan 23, 2016
4,142 views
Number of conflict serializable schedules inT1 : R(A) W(A) R(B) W(B)T2: R(A) W(A) R(B) W(B)
5 votes
5 votes
1 answer
4