MODEL AD3351 QP Key
MODEL AD3351 QP Key
11.i)Explain ford Fulkerson method with suitable example.(10) (AU.,AM2023) C204.4 BTL3
The Ford-Fulkerson algorithm is a widely used algorithm to solve the
maximum flow problem in a flow network. The maximum flow
problem involves determining the maximum amount of flow that can
be sent from a source vertex to a sink vertex in a directed weighted
graph, subject to capacity constraints on the edges.
The algorithm works by iteratively finding an augmenting path, which
is a path from the source to the sink in the residual graph, i.e., the
graph obtained by subtracting the current flow from the capacity of
each edge. The algorithm then increases the flow along this path by
the maximum possible amount, which is the minimum capacity of the
edges along the path.
For example, consider the following graph from the CLRS book.
The maximum possible flow in the above graph is 23.
i)
a b
d e
c
f g
b c d
ii) a
e f g
16. i) Justify how back tracking techniques is used to solve sum of subsets problem with its pseudocode
and complexity.
ii)construct all possible subsets of weights that sum to M for the given instance n=6. M=30 and
weights(1:6)=(5,10,12,13,15,18) (AU.,N/D2023) C204.4 BTL 4