Skip to Content
Algorithms in a Nutshell, 2nd Edition
book

Algorithms in a Nutshell, 2nd Edition

by George T. Heineman, Gary Pollice, Stanley Selkow
December 2015
Intermediate to advanced
350 pages
10h 31m
English
O'Reilly Media, Inc.
Content preview from Algorithms in a Nutshell, 2nd Edition

Chapter 8. Network Flow Algorithms

Many problems can be presented as a network of vertices and edges, with a capacity associated with each edge over which commodities flow. The algorithms in this chapter spring from the need to solve these specific classes of problems. Ahuja (1993) contains an extensive discussion of numerous applications of network flow algorithms:

Assignment

Given a set of tasks to be carried out and a set of employees, who may cost different amounts depending on their assigned task, assign the employees to tasks while minimizing the overall expense.

Bipartite matching

Given a set of applicants who have been interviewed for a set of job openings, find a matching that maximizes the number of applicants selected for jobs for which they are qualified.

Maximum flow

Given a network that shows the potential capacity over which goods can be shipped between two locations, compute the maximum flow supported by the network.

Transportation

Determine the most cost-effective way to ship goods from a set of supplying factories to a set of retail stores.

Transshipment

Determine the most cost-effective way to ship goods from a set of supplying factories to a set of retail stores, while potentially using a set of warehouses as intermediate holding stations.

Figure 8-1 shows how each of these problems can be represented as a network flow from one or more source nodes to one or more terminal nodes. The most general definition of a problem is at the bottom, and each ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Algorithms, 4th Edition

Algorithms, 4th Edition

Robert Sedgewick, Kevin Wayne
Learning Algorithms

Learning Algorithms

George Heineman
Dive Into Algorithms

Dive Into Algorithms

Bradford Tuckfield
Algorithms in a Nutshell

Algorithms in a Nutshell

George T. Heineman, Gary Pollice, Stanley Selkow

Publisher Resources

ISBN: 9781491912973Errata Page