37 37 votes Consider the following four schedules due to three transactions (indicated by the subscript) using read and write on a data item x, denoted by $r(x)$ and $w(x)$ respectively. Which one of them is conflict serializable? $r_1(x)$; $r_2(x)$; $w_1(x)$; $r_3(x)$; $w_2(x)$; $r_2(x)$; $r_1(x)$; $w_2(x)$; $r_3(x)$; $w_1(x)$; $r_3(x)$; $r_2(x)$; $r_1(x)$; $w_2(x)$; $w_1(x)$; $r_2(x)$; $w_2(x)$; $r_3(x)$; $r_1(x)$; $w_1(x)$; Databases gatecse-2014-set1 databases transaction-and-concurrency conflict-serializable normal + – go_editor 14.8k views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply JAINchiNMay commented Jan 24, 2023 reply Follow flag option d is even serial schedule 1 1 replyShare Jeevan R commented Jan 22 reply Follow flag yes T2 T3 T1 0 0 replyShare Raj_Dev_Verma commented Aug 14 reply Follow flag option D is corect becz in D precedencegraph has no cycle 0 0 replyShare Please log in or register to add a comment.
Best answer 35 35 votes (D) make precedence graph for all the options, for option (D) only graph will be acyclic, hence (D) is CSS. Manu Thakur answered Oct 9, 2014 • edited Oct 21, 2018 by kenzou Manu Thakur comment Share Follow See all 7 Comments 7 7 Comments reply Show 4 previous comments Prashant. commented Nov 30, 2015 reply Follow flag take node for evry transaction procedure is simple scan left to right for take first element => scan from 2nd elemnt to right for every r-w . w-w or w-r conflict in diffrent transaction thier is a edge take 2nd element => scan from 3rd elemnt to right for every r-w . w-w or w-r conflict in diffrent transaction thier is a edge do like this skip left side one elemnt evry time. if u found cycle then not css otherwise css. 10 10 replyShare amolagrawal commented Jan 11, 2017 reply Follow flag @ Arjun Sir, I wrote D which was given wrong saying correct ans is 4 (GO Full length test). Can you please tell me what to write if similar situation arises in gate exam. 0 0 replyShare Sandeep Suri commented Jan 27, 2017 reply Follow flag @amolagrawal same happened with mebut don't worry this will not happen in gate. 0 0 replyShare Please log in or register to add a comment.
11 11 votes Option D is correct bcoz there is no cycle in it Franz Kafka answered Dec 20, 2023 Franz Kafka comment Share Follow See all 2 Comments 2 2 Comments reply ritiksri8 commented Nov 19, 2024 reply Follow flag Yes graph needs to be acyclic.. 0 0 replyShare Akashsr3 commented May 23 reply Follow flag Your answer is right but graph drawn is incorrect how did you connected t2 to t3 we only consider when drawing precendence graph this thing Two operations conflict if:✅ same data itemAND✅ from different transactionsAND✅ at least one is WRITE.🔥 Conflicts areOperation pairConflict?R-R❌R-W✅W-R✅W-W✅ 0 0 replyShare Please log in or register to add a comment.
8 8 votes In option D, there is no interleaving of operations. The option D has first all operations of transaction 2, then 3 and finally 1 There can not be any conflict as it is a serial schedule with sequence 2 --> 3 -- > 1 gaurav9822 answered Aug 26, 2016 gaurav9822 comment Share Follow See all 3 Comments 3 3 Comments reply Akanksha Kesarwani commented Dec 6, 2016 i reshown by Akanksha Kesarwani Jan 11, 2017 reply Follow flag when we make precedence graph for option C ,D only graph will be acyclic, then why option C is not correct ? 0 0 replyShare ਜਗਮੀਤ commented Jan 10, 2017 reply Follow flag In option C there is a conflict in r1(x) -> w2(x) and w2(x) -> w1(x) which makes cycle! 0 0 replyShare Akanksha Kesarwani commented Jan 11, 2017 reply Follow flag only option D is correct as there is no cycle in precedence graph, but in C there is cycle as there are conflicts in r1(x) -> w2(x) and w2(x) -> w1(x) which makes cycle! 4 4 replyShare Please log in or register to add a comment.
4 4 votes BEST ANSWER akshay_123 answered Jul 6, 2025 akshay_123 comment Share Follow 0 reply Please log in or register to add a comment.