CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
T1: R1(A), R1(B) and T2: W2(A), W2(B). Of all 6 interleavings that keep each transaction's own order, how many are conflict serializable?
- A. 2
- B. 4
- C. 6
- D. 3
Correct answer: B. 4
Enumerate the C(4, 2) = 6 interleavings and draw the precedence graph of each; exactly 4 have no cycle (all edges between T1 and T2 point the same way). The two serial schedules are always among them.
More DBMS and SQL questions
- Σ = {CD → A, AC → B, B → E, D → B, C → D} on R(A, B, C, D, E). Exactly one FD in Σ is redundant (it can be derived from the others). Which…
- R(A, B) has 400 tuples and S(B, C) has 80 tuples, where B is the primary key of S, and R.B may contain values absent from S (no foreign…
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- R(A, B) = {(2, 4), (3, 1), (4, 1), (4, 3), (4, 4)} and S(B, C) = {(1, 5), (2, 7), (4, 6), (4, 7)}. How many tuples are in R ⟕ S (left…
- R(A, B, C, D, E) has functional dependencies B → C, A → BE, C → ABE, E → C. Which of the following is the complete set of candidate keys…
- T1: W1(A), R1(A), W1(B) and T2: W2(A), R2(B). Of all 10 interleavings that keep each transaction's own order, how many are conflict…