CS FundamentalsVery hardGATE CS (PYQ pattern)
Schedule: R1(A), W2(A), R3(B), R2(B), W3(C), W1(C), R4(D). How many different serial orders of T1, T2, T3, T4 are conflict-equivalent to it?
- A. 6
- B. 3
- C. 1
- D. 4
Correct answer: D. 4
Conflicting pairs: R1(A) before W2(A) gives T1 → T2; W3(C) before W1(C) gives T3 → T1; R3(B) before... R2(B) is a read-read pair (no edge); T4 touches only D. The precedence graph is [(1, 2), (3, 1)]; its topological orders (T4 is free) number 4.
More DBMS and SQL questions
- Schedule (no commits yet): W1(A), R2(A), W2(B), R3(B), R4(C), W3(C), R5(D), W4(D). T1 now aborts. Which set of transactions must also be…
- Which of the following statements about the SQL standard isolation levels (locking-based implementation) are correct? I. READ COMMITTED…
- A log (immediate modification, redo-undo recovery, checkpoint lists active transactions) reads: <T1 start>, <T1,A,1,2>, <T2 start>…
- A B+ tree has 4096-byte nodes, 10-byte keys and 6-byte tree pointers. An internal node with n pointers carries n - 1 keys. A leaf holds…
- A query scans a table of 11 pages sequentially, 5 times in a row, with a buffer pool of 10 pages (initially empty). How many buffer hits…
- An ER model has entity sets E1, E2, E3 and a weak entity W (identified through E3 by an identifying 1:N relationship). Relationships…