Consider the following properties with respect to G = (V , E) a flow network in which a flow is a f : V × V → R real-valued function : P : For all u, v ∈ V , f(u, v) = −f(v, u) 1 P : ∑ f(u, v) = 0 for all u ∈ V 2 v∈V Which one of the following is/are correct? P
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. Both 1 and 2 P P
Explanation
CLRS's net-flow formulation uses skew symmetry f(u, v) = −f(v, u) and flow conservation Σ f(u, v) = 0.
Note: Flow conservation (P2) holds for every vertex except the source and sink; the official key accepts both.
More Data Structures and Algorithms questions
- Consider the graph shown below : Use Kruskal's algorithm to find the minimum spanning tree of the graph. The weight of this minimum spannin…
- The solution of recurrence relation : T(n) = 2T(sqrt(n)) + lg(n) is
- The elements 42,25,30,40,22,35,26 are inserted one by one in the given order into a max-heap. The resultant max-heap is stored in an array…
- Consider two sequences X = ⟨0, 1, 2, 1, 3, 0, 1⟩ and Y = ⟨1, 3, 2, 0, 1, 0⟩. The length of the longest common subsequence of X and Y is
- Consider the postfix expression with single-digit operands: 6 2 3 * / 4 2 * + 6 8 * −. The top two elements of the stack after the second *…
- A binary search tree is constructed by inserting the following numbers in order : 60,25,72,15,30,68,101,13,18,47,70,34 The number of nodes…