Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
130 views
in Programming by (103k points)
closed by
Suppose a database schedule 5 involves transactions T1, T2, .............Tn Consider the precedence graph of S with vertices representing the transactions and edges representing the conflicts. If S is serializable, which one of the following orderings of the vertices of the precedence graph is guaranteed to yield a serial schedule ?
1. Topological order
2. Depth - first order
3. Breadth - first order
4. Ascending order of transaction indices

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 1 : Topological order

The correct answer is option 1

  • For a schedule to be conflict serializable, there should be no cycle present in the precedence graph.
  • Topological sort is not possible for the cyclic graph.
  • Hence topological ordering of the vertices is guaranteed to yield a serial schedule.

  • BFS and DFS are also possible for cyclic graphs.
  • Ascending order of transactions indices also does not guarantee serial a serial schedule because in a transaction more indices might come before the lower one.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...