Review Questions, Final Exam

Similar documents
Review Questions, Final Exam

IE 5531: Engineering Optimization I

Problem set 1. (c) Is the Ford-Fulkerson algorithm guaranteed to produce an acyclic maximum flow?

TRANSPORTATION & NETWORK PROBLEMS

Two Applications of Maximum Flow

CMSC 451: Max-Flow Extensions

Maximum Flow Problem (Ford and Fulkerson, 1956)

CMPSCI 611: Advanced Algorithms

Lecture 8 Network Optimization Algorithms

Solutions to Review Questions, Exam 1

The Simplex Method. Standard form (max) z c T x = 0 such that Ax = b.

Flow Network. The following figure shows an example of a flow network:

Linear Programming. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Linear Programming 1 / 47

Math 381 Midterm Practice Problem Solutions

6.046 Recitation 11 Handout

Week 4. (1) 0 f ij u ij.

Lecture 2: Network Flows 1

CMPSCI 311: Introduction to Algorithms Second Midterm Exam

Optimization - Examples Sheet 1

An example of LP problem: Political Elections

(P ) Minimize 4x 1 + 6x 2 + 5x 3 s.t. 2x 1 3x 3 3 3x 2 2x 3 6

Solving Polynomial and Rational Inequalities Algebraically. Approximating Solutions to Inequalities Graphically

Resource Constrained Project Scheduling Linear and Integer Programming (1)

Forces and Newton s Second Law

MTHSC 4420 Advanced Mathematical Programming Homework 2

Solving Linear and Rational Inequalities Algebraically. Definition 22.1 Two inequalities are equivalent if they have the same solution set.

CO 250 Final Exam Guide

5 Flows and cuts in digraphs

Midterm Exam 2 Solutions

MATH 445/545 Homework 2: Due March 3rd, 2016

Algorithms: Lecture 12. Chalmers University of Technology

Maximum flow problem CE 377K. February 26, 2015

Design and Analysis of Algorithms

directed weighted graphs as flow networks the Ford-Fulkerson algorithm termination and running time

29 Linear Programming

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs

Duality of LPs and Applications

x 1 + 4x 2 = 5, 7x 1 + 5x 2 + 2x 3 4,

COT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748

Lectures 6, 7 and part of 8

CS 598RM: Algorithmic Game Theory, Spring Practice Exam Solutions

Outline. Outline. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Scheduling CPM/PERT Resource Constrained Project Scheduling Model

CO350 Linear Programming Chapter 6: The Simplex Method

Chapter 1 Review of Equations and Inequalities

Maximum Flow. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Maximum Flow 1 / 27

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

min 4x 1 5x 2 + 3x 3 s.t. x 1 + 2x 2 + x 3 = 10 x 1 x 2 6 x 1 + 3x 2 + x 3 14

CS 170 DISCUSSION 10 MAXIMUM FLOW. Raymond Chan raychan3.github.io/cs170/fa17.html UC Berkeley Fall 17

1 Review for Lecture 2 MaxFlow

Modeling with non-linear functions Business 8. Consider the supply curve. If we collect a few data points we might find a graph that looks like

Types of Networks. Internet Telephone Cell Highways Rail Electrical Power Water Sewer Gas

Econ 172A, Fall 2012: Final Examination (I) 1. The examination has seven questions. Answer them all.

MS-E2140. Lecture 1. (course book chapters )

II. Analysis of Linear Programming Solutions

2.13 Maximum flow with a strictly positive initial feasible flow

Linear and Integer Programming - ideas

Econ 172A, Fall 2012: Final Examination Solutions (I) 1. The entries in the table below describe the costs associated with an assignment

The min cost flow problem Course notes for Optimization Spring 2007

Discrete Optimization 2010 Lecture 3 Maximum Flows

Spring 2018 IE 102. Operations Research and Mathematical Programming Part 2

CSC Design and Analysis of Algorithms. LP Shader Electronics Example

Energy minimization via graph-cuts

The min cost flow problem Course notes for Search and Optimization Spring 2004

Introduction to Linear Programming (LP) Mathematical Programming (MP) Concept

Introduction to Integer Programming

Algorithms and Theory of Computation. Lecture 11: Network Flow

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

Linear Programming Duality P&S Chapter 3 Last Revised Nov 1, 2004

Friday, September 21, Flows

Econ 172A, Fall 2012: Final Examination Solutions (II) 1. The entries in the table below describe the costs associated with an assignment


CSE 421 Introduction to Algorithms Final Exam Winter 2005

IE 400 Principles of Engineering Management. Graphical Solution of 2-variable LP Problems

Mathematics for Decision Making: An Introduction. Lecture 13

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

MULTIPLE CHOICE QUESTIONS DECISION SCIENCE

Welcome to CPSC 4850/ OR Algorithms

Going from graphic solutions to algebraic

ACO Comprehensive Exam March 20 and 21, Computability, Complexity and Algorithms

MS-E2140. Lecture 1. (course book chapters )

Algorithms: COMP3121/3821/9101/9801

Linear Programming. Linear Programming I. Lecture 1. Linear Programming. Linear Programming

DEPARTMENT OF STATISTICS AND OPERATIONS RESEARCH OPERATIONS RESEARCH DETERMINISTIC QUALIFYING EXAMINATION. Part I: Short Questions

CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi

Graphs and Network Flows IE411. Lecture 12. Dr. Ted Ralphs

Numerical Optimization

Flows and Cuts. 1 Concepts. CS 787: Advanced Algorithms. Instructor: Dieter van Melkebeek

Part IB Optimisation

Example: 1. In this chapter we will discuss the transportation and assignment problems which are two special kinds of linear programming.

CSE 326: Data Structures Network Flow. James Fogarty Autumn 2007

1. Solve the following linear programming problem. and b =

LINEAR PROGRAMMING I. a refreshing example standard form fundamental questions geometry linear algebra simplex algorithm

Exam 2 Solutions October 12, 2006

Optimization Methods in Management Science

Agenda. Soviet Rail Network, We ve done Greedy Method Divide and Conquer Dynamic Programming

Prelude to the Simplex Algorithm. The Algebraic Approach The search for extreme point solutions.

Maximum flow problem

Lecture slides by Kevin Wayne

Linear Programming Duality

University of New Mexico Department of Computer Science. Final Examination. CS 561 Data Structures and Algorithms Fall, 2013

Transcription:

Review Questions, Final Exam A few general questions. What does the Representation Theorem say (in linear programming)? In words, the representation theorem says that any feasible point can be written as a sum of a convex combination of BFS with (optionally) a direction of unboundedness. In symbols, if b,..., b k are the BFS and d is a direction of unboundedness, then: where σ n 0 and n σ n =. k x = σ n b n + d n= 2. What is the Fundamental Theorem of Linear Programming? The Fundamental Theorem states that, if an LP has an optimal solution, then it will occur at a BFS. Note that it is possible that optimal solutions may exist that are not BFS, for example, if two BFS give optimal solutions, then the line segment in between does as well. The theorem is fundamental in the sense that it tells us to look at the set of BFS for an optimal solution. 3. What is the main idea behind the Simplex Method? (Think about what it is doing graphically- How does the algorithm start, how does it proceed?) The Simplex Method begins with a BFS, then it proceeds to check adjacent BFS, where the value of z is increasing (it can also stay the same).

From Chapter 8 The review for this chapter was pretty terrible, so here are some review questions.. Write the shortest path problem as (i) a transhipment problem, and (ii) a linear program. For specificity, use the PowerCo network below (Figure 2, p 44). (Hints: For transhipment, we have one supply, one demand, and a bunch of warehouses. For the LP, you could write it from the transhipment problem.). Finally, find the shortest path from Plant to City using Dijkstra s algorithm. SOLUTION: As a transhipment problem, 2 3 4 5 6 4 3 M M M Plant 0 M 3 2 M 2 M 0 M 3 M 3 M M 0 M 2 4 M M M 0 2 5 For the linear program, we have: min 4x 2 + 3x 3 + 3x 24 + 2x 25 + 3x 35 + 2x 46 + 2x 56 2

such that (sums across first, then sums down each column): (And all x ij 0) For the Dijkstra algorithm, we have: x 2 + x 3 = x 22 + x 24 + x 25 = x 33 + x 35 = x 44 + x 46 = x 55 + x 56 = x 2 + x 22 = x 3 + x 33 = x 24 + x 44 = x 25 + x 35 + x 55 = x 46 + x 56 = 2 3 4 5 6 0 4 3 3 4 3 6 3 2 4 7 2 6 2,3 5 7 2 6 2,3 4 7 2 8 5 6 8 5 This tells us that the shortest length to node 6 is 8 units, and we get that by taking either 2 5 6, or 3 5 6. Side Remark: Notice that the first path tells us to fill in a in the cells to the transportation problem: x 2, x 25, and x 56. However, that s not a BFS for the transportation problem- To fill out the solution, we would have to include x 33 and x 44. 2. Given the figure below (Fig 23 from the text), first write the maximum flow problem as a linear program. (Hint: Think about the constraints on the flow for each edge, then for each vertex). Solve the max-flow problem using Ford-Fulkerson. Be sure to write out the residual graphs. Finally, find a cut giving the minimum capacity to show that your solution is correct. SOLUTION: Recall that, for a flow to be valid, we have some restrictions that make up the linear program: The flow on each edge may not be negative, and may not be greater than the capacity. 3

Except for the source and sink, flow in must equal flow out. Flow out of the source is equal to the flow into the sink. Writing these in terms of our restrictions, the LP is: min z = f so + f so2 s.t. f so 4 f so2 6 f 3 6 f 4 2 f 2 4 f 24 4 f 3si 6 f 43 f 4si 2 f so + f 2 = f 3 + f 4 f so2 = f 2 + f 24 f 3 + f 43 = f 3si f 4 + f 24 = f 43 + f 4si f so + f so6 = f 3si + f 4si with all f ij 0. We should find that the maximum flow is 8, and the cut that gives us that: A = {so,, 2, 3, 4}, B = {si} For the details, see the attached handwritten solution for the flow, with the residual graphs. 3. Continuing with Figure 23 from the previous question, with the maximum flow, if the cut is: A = {so, 2, 3}, B = {, 4, si} then what is the net flow across the cut? What is the capacity of the cut? SOLUTION: Look at the edges, and determine if they run from A to B or vice versa, or neither: A B B A Neither f so f 3 f so2 f 2 f 43 f 4 f 3si f 4si f 24 4

For the net flow, we sum f e from A to B, subtract the flow going the other direction: (4 + 3 + 6 + 3) (5 + ) = 0 For the capacity of the cut, only sum c e from A to B: 4 + 4 + 6 + 4 = 8 4. To use a max-flow for the assignment problem, recall that we have a source node that goes to a node for each person (capacity of each), then each person is attached to a job (capacity of for each edge), and then each job is attached to a sink. (NOTE: We are maximizing the number of compatible pairs.) (Problem 7, 8.3) Four workers are available to perform four jobs, but not all workers may be assigned to every job (See the chart below, X marks compatible). Draw the network for the maximum flow problem that can be used to determine whether all jobs can be assigned to a suitable worker. Job Job 2 Job 3 Job 4 Worker X 2 X X 3 X 4 X X X X For the details, see the attached handwritten solution. 5. (Figure 4 from text below) (a) If we look at the edges as having costs, find the path from node to all other nodes. (b) If we look at the edges as capacities for a flow, find the maximum flow. See the attached handwritten solutions. 5