(a) Insert =, Extract-Min =
, Decrease-Key =
. If d =
, the Insert and Decrease -Key will become
and Extract-Min will become
.
(b) Let d = , the complexity will become O(|E|).
(c) Run (b) for |V| times.
(a) Insert =, Extract-Min =
, Decrease-Key =
. If d =
, the Insert and Decrease -Key will become
and Extract-Min will become
.
(b) Let d = , the complexity will become O(|E|).
(c) Run (b) for |V| times.
a. Let the new added edge be (u,v). If there are nodes u,v such that i is transitive to u, v is transitive to j. Then i is transitive to j in the G*.
b. Let G be one directed path start from u and stops in v. If we add edge (v,u), then all nodes in the graph are transitive to each other.
c. If i is transitive to v, then add edge (u,v) is no help to i and j. We can check this condition explicitly. Although there are possible insert edges, but the situations which meet i is transitive to u and i is not transitive to v are only
possibilities. Hence, we can insert
edges in
time.