The operation steps of the shortest augmented path algorithm and the continuous shortest augmented path algorithm

Source: Internet
Author: User

Shortest augmented path Algorithm (SAP):

1. Initialize capacity networks and network streams;

2. Constructs the residue network and the hierarchical network, if the meeting point is not in the hierarchical network, then the algorithm ends;

3. Continuous use of BFS augmentation in the hierarchical network, until there is no augmented road in the hierarchical network; Each augmentation is completed, in the hierarchical network to remove the saturation caused by the improved flow of the arc;

4. Go to step (2).

Continuous shortest augmented path algorithm (dinic):

1. Initialize capacity networks and network streams;

2. Constructs the residue network and the hierarchical network, if the meeting point is not in the hierarchical network, then the algorithm ends;

3. In the hierarchical network with a DFS process augmentation, DFS execution completed, the phase of the augmentation is also completed;

4. Go to step (2).

The operation steps of the shortest augmented path algorithm and the continuous shortest augmented path algorithm

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.