Deprecated: Implicit conversion from float-string "1687013910.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1687013910.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1687013910.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1687013910.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1687013910.941" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1696312343.920" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1696312343.920" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1696312343.920" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1696312343.920" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1696312343.920" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1700069267.332" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1700069267.332" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1700069267.332" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1700069267.332" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1700069267.332" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1543338276.637" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1543338276.637" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1543338276.637" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1543338276.637" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1543338276.637" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1569257669.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1569257669.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1569257669.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1569257669.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1569257669.548" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
GATE CSE 2017 Set 2 | Question: 44 / GATE Overflow for GATE CSE
retagged by
70,981 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


Deprecated: Implicit conversion from float-string "1613639749.239" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1613639749.239" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1613639749.239" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1613639749.239" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
10.9k
views
5 answers
31 votes
Madhav asked Feb 14, 2017
10,886 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 ...
16.1k
views
3 answers
44 votes
Arjun asked Feb 14, 2017
16,105 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...
18.3k
views
6 answers
62 votes
Madhav asked Feb 14, 2017
18,342 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...
7.0k
views
2 answers
13 votes
Arjun asked Feb 18, 2021
7,034 views
​​​​​Let $S$ be the following schedule of operations of three transactions $T_1$, $T_2$ and $T_3$ in a relational database system:$$R_2(Y), R_1(X), R_3(Z), R_1(...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 5.4 3% 3.7 2% 72 1.9 1% 2 0.0 0% 569k 43%
Control 35.4 19% 4.9 2% 5 30.8 17% 12 0.0 0% 1989k 151%
View 3.5 1% 3.5 1% 12 0.0 0% 0 0.0 0% 0k 0%
Theme 127.6 71% 4.8 2% 15 122.9 68% 3 0.0 0% 328k 25%
Stats 7.6 4% 0.1 0% 0 7.6 4% 1 0.0 0% 0k 0%
Total 179.5 100% 16.9 9% 104 163.1 90% 18 0.0 0% 1315k 100%