Review for E&CE 602. 3 3 1 4 4 2 2 2 5 2 Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.

Slides:



Advertisements
Similar presentations
Thursday, March 14 Introduction to Network Flows
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
ITS THE FINAL LECTURE! (SING IT, YOU KNOW YOU WANT TO) Operations Research.
Outline LP formulation of minimal cost flow problem
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.
Introduction to Algorithms
Modeling problems with Integer Linear Programming (ILP) Name: Chuan Huang.
C&O 355 Mathematical Programming Fall 2010 Lecture 21 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Modelling with Max Flow 1. 2 The Max Flow Problem.
Math443/543 Mathematical Modeling and Optimization
Computer Algorithms Integer Programming ECE 665 Professor Maciej Ciesielski By DFG.
Routing algorithms, all distinct routes, ksp, max-flow, and network flow LPs W. D. Grover TRLabs & University of Alberta © Wayne D. Grover 2002, 2003 E.
ECE LP Duality 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
Linear Programming – Max Flow – Min Cut Orgad Keller.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 5: February 2, 2009 Architecture Synthesis (Provisioning, Allocation)
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
1.3 Modeling with exponentially many constr.  Some strong formulations (or even formulation itself) may involve exponentially many constraints (cutting.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
Section 2.9 Maximum Flow Problems Minimum Cost Network Flows Shortest Path Problems.
Modeling and Evaluation with Graph Mohammad Khalily Dermany Islamic Azad University, Khomein branch.
© J. Christopher Beck Lecture 5: Project Planning 2.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Lecture 16 Maximum Matching. Incremental Method Transform from a feasible solution to another feasible solution to increase (or decrease) the value of.
Theory of Computing Lecture 13 MAS 714 Hartmut Klauck.
Solve problems by using linear programming.
Maximization of Network Survivability against Intelligent and Malicious Attacks (Cont’d) Presented by Erion Lin.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Network Flow. Network flow formulation A network G = (V, E). Capacity c(u, v)  0 for edge (u, v). Assume c(u, v) = 0 if (u, v)  E. Source s and sink.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
Chap 10. Integer Prog. Formulations
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
© J. Christopher Beck Lecture 6: Time/Cost Trade-off in Project Planning.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
6/10/01Network Problems: DJK1 Network Problems Chapters 9 and 10.
V. Cacchiani, ATMOS 2007, Seville1 Solving a Real-World Train Unit Assignment Problem V. Cacchiani, A. Caprara, P. Toth University of Bologna (Italy) European.
Integer Programming (정수계획법)
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
Pipelined and Parallel Computing Partition for 1 Hongtao Du AICIP Research Nov 3, 2005.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
1 TCOM 5143 Lecture 10 Centralized Networks: Time Delay and Cost Tradeoffs.
3-5: Linear Programming. Learning Target I can solve linear programing problem.
St. Edward’s University
The minimum cost flow problem
Bipartite Matching and Other Graph Algorithms
1.3 Modeling with exponentially many constr.
Lecture 16 Maximum Matching
Edmonds-Karp Algorithm
Integer Programming (정수계획법)
3-3 Optimization with Linear Programming
Introduction Basic formulations Applications
Lecture 19-Problem Solving 4 Incremental Method
Vertex Covers, Matchings, and Independent Sets
Problem Solving 4.
Chapter 1. Formulations (BW)
1.3 Modeling with exponentially many constr.
Integer Programming (정수계획법)
Chapter 6 Network Flow Models.
Advanced LP models column generation.
Advanced LP models column generation.
Lecture 19 Linear Program
The Minimum Cost Spanning Tree Problem
1.6 Linear Programming Pg. 30.
Special Graphs: Modeling and Algorithms
Presentation transcript:

Review for E&CE 602

Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18 3

2 2 Find the maximum flow from s to t of the graph below. Each forward (s to t) arc Has capacity of 1 unless labeled otherwise. s t

Find maximum flow 5,5 2,4 3,6 1,5 0,1 3,3 6,4,6 3,1,7 4,2,5 ST

X1 x2 x3 x4 x5 x6 y1 y2 y3 y4 y5 y6 Given the initial matching on the graph, provide the H tree And the next matching, using the maximum matching algorithm. (use curvy lines to identify the next matching on the graph). x4 y3 x5 x1 y1 x2 y4 x3 y6 y5 x6 y2 Path to flip is x4-y6-x3-y2-x6-y5

Using shortest path algorithm (used during lectures), identify all Shortest paths from node u to all other nodes in the graph. Specifically Define S={u}, S={u, }, S={u,, }… through the shortest path algorithm Stages. u f a b g c e d S={u}={u,a}={u,a,e}={u,a,e,f,d,b}={u,a,e,f,d,b,c}={u,a,e,f,d,b,c,g}

Formulate the peicewise linear function f(x) shown in graph below. So that it can be minimized in the objective function of the IP given below. a1 a2 a3 a4 x Min f(x) | Ax <= b Slope is m1 f(x)

You are given a set of M tasks, t=t1,t2,…,M and N processors, n=1,2,…N. each task must be assigned to one processor and each Processor can be assigned at most two tasks. Assume Represents the proposition that task t is assigned to processor n (use binary variables x t,n ) a)Formulate the following constraint: b)Formulate the following constraint: c) Give a formulation of the objective function which is to minimize The number of processors being used. You may define new constraints Or variables as required

(a) (b)

(c)

Give a good IP formulation for the following problem: The problem is the maximum cardinality node packing problem On the graph below constrained with the following inequality:

Is a knapsack inequality So we can generate facets or Stronger inequalities to improve The formulation We can use graph to extract node packing Facets/inequalities

Describe how you would solve the following problem in general: Find the minimum execution time for 2 processor to execute a set of task (defined using a directed acyclic graph, where arcs represent data transfers between tasks). Assume one task at a time can be executed on each processor, tasks can be executed in parallel one different processors, and there is no communication delay. (all tasks have the same duration)

Reformulate the following optimization problem, so that one can implement it with a LP solver which only supports min or max objective functions not the min- max objective below

Mid august (9) projects due (noon, 22 august, in DC 3514) final exam (2:00-5:00, 15 august),