Linear programming and network flow __ linear programming and network flow

Source: Internet
Author: User
I. Linear programming problems and their representations

For example:

Two. Maximum network flow problem
(1) Network
G is a simple forward graph, g= (v,e), v={1,2,...,n}.   Specify a vertex s in V, called a source and another vertex T, called a sink.   There is a ∈e of each edge (v,w) of the graph G, which should have a value cap (v,w) ≥0, called the capacity of the edge. This is referred to as a network of graph G.
(2) Network flow
A stream on a network is a nonnegative function Flow={flow (V,W)} that is defined on the edge set E of the network, and the Flow (V,W) is on the Edge (V,W).
(3) Ford-fulkerson algorithm
Ford_fulkerson (G, S, t) {for each
	edge (U, v) ∈g.e
		(U, v.). F = 0 while
  	GF exists an augmented path of S to T p{
		CF (p) = MIN{CF (U, v ): (U, v) is in P}
		for each edge (U, v) in p{
  			if (U, v) ∈e {
    				(U, v). F = = CF (p)
  			} else { 
    				(V, u). F = CF (P)}}}}	

(4) Edmonds-karp algorithm

To find an augmented path, you can use the EDMONDS-KARP algorithm to select the shortest path from S to T, where each edge has a weight of 1. That is, the range first traversal (BFS) with S as the starting point, the arrival of T is terminated.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.