CS FundamentalsVery hardGATE CS · PSU (ISRO/BARC)
For the schedule W4(B), R1(B), R2(A), R1(C), R3(B), R4(A), R3(C), W2(C), how many serial schedules of T1–T4 are conflict-equivalent to it?
- A. 4
- B. 1
- C. 3
- D. 2
Correct answer: D. 2
Precedence edges: T1→T2, T3→T2, T4→T1, T4→T3. Counting the topological orders of this DAG gives 2.
More DBMS and SQL questions
- For the schedule R1(B), W1(B), R2(C), W3(C), R3(B), R4(B), R2(B), R4(A), how many serial schedules of T1–T4 are conflict-equivalent to it?
- Assertion (A): A schedule produced under the basic timestamp-ordering protocol with Thomas's write rule is always conflict serializable…
- Table Stu(sid, sname) rows: (1, 'Om'), (2, 'Pia'), (3, 'Raj'), (4, 'Sia'). Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2'…
- Keys 7, 53, 17, 43, 38, 5, 27, 50, 47, 10 are inserted in this order into an empty B+ tree where a node holds at most 3 keys; an…
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- R(A, B) has 8 tuples. What is the number of tuples in R ⋈ R (natural join of R with itself), and in R × ρ{S(C, D)}(R)?