In: Computer Science
presedence graph
`Hey,
Note: If you have any queries related to the answer please do comment. I would be very happy to resolve all your queries.
Precedence Graph or Serialization
Graph is used commonly to test Conflict Serializability of
a schedule.
It is a directed Graph (V, E) consisting of a set of nodes V =
{T1, T2, T3……….Tn} and
a set of directed edges E = {e1, e2,
e3………………em}.
The graph contains one node for each Transaction Ti. An
edge ei is of the form Tj –> Tk
where Tj is the starting node of ei and
Tk is the ending node of ei. An edge
ei is constructed between nodes Tj to
Tk if one of the operations in Tj appears in
the schedule before some conflicting operation in Tk
.
The Algorithm can be written as:
If there is no cycle in the precedence graph, it means we can construct a serial schedule S’ which is conflict equivalent to the schedule S.
Kindly revert for any queries
Thanks.