Discrete Optimization Lecture #2 2008/2/271Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Course Overview » A taxonomy of optimization problems » Course.

Slides:



Advertisements
Similar presentations
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
Advertisements

Lecture #3; Based on slides by Yinyu Ye
Introduction to Algorithms
Dragan Jovicic Harvinder Singh
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
How should we define corner points? Under any reasonable definition, point x should be considered a corner point x What is a corner point?
Discrete Optimization Shi-Chung Chang. Discrete Optimization Lecture #1 Today: Reading Assignments 1.Chapter 1 and the Appendix of [Pas82] 2.Chapter 1.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
Totally Unimodular Matrices Lecture 11: Feb 23 Simplex Algorithm Elliposid Algorithm.
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Introduction to Linear and Integer Programming Lecture 7: Feb 1.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Approximation Algorithms
The Theory of NP-Completeness
Chapter 10: Iterative Improvement
Analysis of Algorithms CS 477/677
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Chapter 11: Limitations of Algorithmic Power
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
C&O 355 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
Programming & Data Structures
C&O 355 Mathematical Programming Fall 2010 Lecture 2 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A.
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
CSCE350 Algorithms and Data Structure
Computational Geometry Piyush Kumar (Lecture 5: Linear Programming) Welcome to CIS5930.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 8: Complexity Theory.
Pareto Linear Programming The Problem: P-opt Cx s.t Ax ≤ b x ≥ 0 where C is a kxn matrix so that Cx = (c (1) x, c (2) x,..., c (k) x) where c.
MIT and James Orlin1 NP-completeness in 2005.
Lecture 2: General Problem-Solving Methods. Greedy Method Divide-and-Conquer Backtracking Dynamic Programming Graph Traversal Linear Programming Reduction.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Discrete Optimization Lecture #3 2008/3/41Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Algorithms and Complexity » Problems, algorithms, and complexity.
The Simplex Algorithm 虞台文 大同大學資工所 智慧型多媒體研究室. Content Basic Feasible Solutions The Geometry of Linear Programs Moving From Bfs to Bfs Organization of a.
§1.4 Algorithms and complexity For a given (optimization) problem, Questions: 1)how hard is the problem. 2)does there exist an efficient solution algorithm?
Operational Research & ManagementOperations Scheduling Economic Lot Scheduling 1.Summary Machine Scheduling 2.ELSP (one item, multiple items) 3.Arbitrary.
The Simplex Algorithm 虞台文 大同大學資工所 智慧型多媒體研究室. Content Basic Feasible Solutions The Geometry of Linear Programs Moving From Bfs to Bfs Organization of a.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
Hon Wai Leong, NUS (CS6234, Spring 2009) Page 1 Copyright © 2009 by Leong Hon Wai CS6234: Lecture 4  Linear Programming  LP and Simplex Algorithm [PS82]-Ch2.
Linear Programming: Formulations, Geometry and Simplex Method Yi Zhang January 21 th, 2010.
Young CS 331 D&A of Algo. NP-Completeness1 NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Searching a Linear Subspace Lecture VI. Deriving Subspaces There are several ways to derive the nullspace matrix (or kernel matrix). ◦ The methodology.
Linear Programming Chap 2. The Geometry of LP  In the text, polyhedron is defined as P = { x  R n : Ax  b }. So some of our earlier results should.
1 1. Which of these sequences correspond to Hamilton cycles in the graph? (a) (b) (c) (d) (e)
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
1 Chapter 4 Geometry of Linear Programming  There are strong relationships between the geometrical and algebraic features of LP problems  Convenient.
Discrete Optimization
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Lap Chi Lau we will only use slides 4 to 19
Topics in Algorithms Lap Chi Lau.
Polyhedron Here, we derive a representation of polyhedron and see the properties of the generators. We also see how to identify the generators. The results.
Chap 3. The simplex method
How Hard Can It Be?.
Polyhedron Here, we derive a representation of polyhedron and see the properties of the generators. We also see how to identify the generators. The results.
1. for (i=0; i < n; i+=2) if (A[i] > A[i+1]) swap(A[i], A[i+1])
Chapter 11 Limitations of Algorithm Power
I.4 Polyhedral Theory (NW)
NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979.
Approximation Algorithms
Chapter 2. Simplex method
Presentation transcript:

Discrete Optimization Lecture #2 2008/2/271Shi-Chung Chang, NTUEE, GIIE, GICE Last Time 1.Course Overview » A taxonomy of optimization problems » Course introduction, requirements and schedule 2.Some Basics of Optimization » Local and global optima » Feasibility » Convexity » Convex programming 3.Algorithms and Complexity »Problems, algorithms, and complexity

Discrete Optimization Lecture #2 Last Time: Reading Assignments 1.Chapter 1 and the Appendix of [PaS82] 2.Chapter 1 of [GaJ79] [PaS82] C. H. Papadimitriou, K. Steiglitz, Combinatorial Optimization:Algorithms and Complexity, Prentice Hall, [GaJ79] M. R. Garey and D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, Series of Books in the Mathematical Sciences, /2/272Shi-Chung Chang, NTUEE, GIIE, GICE

Today 1.Algorithms and Complexity » Problems, algorithms, and complexity » Polynomial time algorithms » Intractability » NP-complete problems 2.Basic Properties of Linear Programming » Forms of LP » Basic feasible solutions » Geometry of LP 3.The Revised Simplex Method Reading Assignments 1. Sections of [PaS82] 2. Chapter 1 of [GaJ79] 3. Section 3.8 of [Lue84] [Lue84] David G. Luenberger, Linear & Nonlinear Programming 2e, Addison Wesley, /2/273Shi-Chung Chang, NTUEE, GIIE, GICE

§1.4 Algorithms and complexity For a given (optimization) problem, Questions: 1)how hard is the problem. 2)does there exist an efficient solution algorithm?  Computational complexity analysis (a worst case analysis) 2008/2/274Shi-Chung Chang, NTUEE, GIIE, GICE

§ Problems, Algorithm and Complexity Problem: a general question to be answered, usually possessing several unspecified parameters. Example: A Linear programming problem subject to A problem is described by giving (i)a general description of its parameters (ii)A statement of what properties the answer should satisfy 2008/2/275Shi-Chung Chang, NTUEE, GIIE, GICE

Example Traveling salesman problem Parameters: set of cities distance solution: an ordered sequence that minimizes 2008/2/276Shi-Chung Chang, NTUEE, GIIE, GICE

Measuring Algorithmic Efficiency Computation Time as the measure  Time Complexity Function for an algorithm: express its time requirements by giving the largest amount of time needed by the algorithm to solve a problem instance.  a function of the “size” of the instance Example size indices of a TSP # of cities # of interconnections 2008/2/277Shi-Chung Chang, NTUEE, GIIE, GICE

§ Polynomial Time Algorithms and Intractable Problems – A time complexity function is if for all n ≥ 0.  Algorithm An instance of a problem: a problem with all parameters specified E xample Polynomial time algorithm: Time complexity fcn. for some polynomial function p( ・ ). Exponential time algorithm That cannot be bounded by (may not be exponential, e.g /2/278Shi-Chung Chang, NTUEE, GIIE, GICE

Algorithms: General, step-by-step procedures for solving problems Solve: An algorithm solves a problem  if that algorithm can be applied to any instance I of  and produce a solution to that instance I Example: A TSP solution algorithm step 1: Generate all the feasible paths step 2: Compare the distances among paths and save the shortest one  m! evaluations and comparisons for an m city instance 20! > Assume evaluations/sec.  >31 years  interested in finding the most “efficient” algorithm How to measure algorithmic efficiency? 2008/2/279Shi-Chung Chang, NTUEE, GIIE, GICE

Comparisons of the Two Classes of Algorithms Time Complexity function Size Second second second second second second.0001 second.0004 second.0009 second.0016 second.0025 second.0036 second.001 second.008 second.027 second.064 second.125 second.216 second.1 second 3.2 second 24.3 second 1.7 minutes 5.2 minutes 13.0 minutes.001 second 1.0 second 17.9 minutes 12.7 days 35.7 years 366 centuries.059 second 58 minutes 6.5 years 3855 centuries 2x centuries 1.3x centuries 2008/2/2710Shi-Chung Chang, NTUEE, GIIE, GICE

Size of Largest Problem Instance Solvable in 1 Hour Time Complexity function With present Computer With computer 100 times faster With computer 1000 times faster /2/2711Shi-Chung Chang, NTUEE, GIIE, GICE

1.An algorithm is not a good algorithm if its complexity is exponential 2. A problem is not “well-solved” until a polynomial time algorithm is known for it 3. A problem is intractable if it is so hard that no polynomial time algorithm can possibly solve it Note: Time complexity is a wont case measure Exponential algorithms may be efficient for specific applications Algorithm and Problem Intractibility 2008/2/2712Shi-Chung Chang, NTUEE, GIIE, GICE

Examples of Intractable problems 1) Hilbert’s tenth problem:  An integer solution ? 2) “Intractable problems in Control Theory” C.H. Papadimitriou and J. Tsitsiklis, SIAM J. control and Optimization, July, 1986 PP /2/2713Shi-Chung Chang, NTUEE, GIIE, GICE

§1.4.4 P and NP Problem, NP- Completeness deterministic algorithms the result of every operation is uniquely defined e.g. computer programs non-deterministic algorithms Results of operations can be any of a set of alternatives Example: Shopping list A shopping list can be viewed as a very simple nondeterministic algorithm. Every item on the list is a directive to find the indicated product, but the order in which to find them is not indicated.  P-class of problems: the set of all problems which can be solved by deterministic algorithms in polynomial time NP-Class of problems the set of all problems which can be solved by non-deterministic algorithms in polynomial time 2008/2/2714Shi-Chung Chang, NTUEE, GIIE, GICE

NP-Completeness A problem  is NP-complete if  NP and every problem in NP can be reduced to  through polynomial time transformations (may not be deterministic) e.g. The satisfiability problem INSTANCE:Set U of variables, collection C of clauses over U. Question:Is there a satisfying truth assignment for C?  All NP-complete problems are equally difficult 2008/2/2715Shi-Chung Chang, NTUEE, GIIE, GICE

Facts: (1) can be solved in polynomial time by a deterministic algorithm => NP=P (2) Q: NP problems intractable?  P=NP? no answer so far! Usually, if a problem is proven to be NP-complete =>give up finding optimal solution algorithm for it =>heuristics, sub-optimality or approximations. 2008/2/2716Shi-Chung Chang, NTUEE, GIIE, GICE

Chapter 2 The Simplex algorithm §2.1 Basic Properties of LP §2.1.1 Forms of LP General LP(GLP) subject to (equalities) ( inequalities) 2008/2/2717Shi-Chung Chang, NTUEE, GIIE, GICE

Proof: G=>S 1) ( for ) 2) Canonical form( C L P )Standard Form( S L P ) Three forms are equivalent ! ! = > need to stud y onl y one form 2008/2/2718Shi-Chung Chang, NTUEE, GIIE, GICE

§2.1.2 Basic Feasible Solutions Goal: mathematically defines the concept of looking for the optimum among vertices Consider SLP = subject to A:m x n (m<n) Q: m ≥ n? Assume:  (A)=m A={ } B={ }  (B)=m I.e. Linearly indep. => is a basic solution if If a basic solution is also feasible, i.e. then it is a basic feasible solution (bfs) 2008/2/2719Shi-Chung Chang, NTUEE, GIIE, GICE

Example min[ ] subject to and  B = a bfs ‚ B= = > basic not feasible 2008/2/2720Shi-Chung Chang, NTUEE, GIIE, GICE

The fundamental theorem of LP Let and (i) If (ii) If optimal feasible solution => optimal bfs. 2008/2/2721Shi-Chung Chang, NTUEE, GIIE, GICE

Proof: (i) Let => Case1 are linearly indep. => p ≤ m if p=m => is a bfs if p can find from (linearly indep) => is a basic (degenerate) solution to case2 are linearly dependent => such that 2008/2/2722Shi-Chung Chang, NTUEE, GIIE, GICE

Set Let otherwise (ii)Almost the same as ( i ) Read by yourself [Lue 8 4,p.2 0] 2008/2/2723Shi-Chung Chang, NTUEE, GIIE, GICE

Implications of the Theorem (1) need only consider bfses for optimum (2) A:m x n => # of bfses ≤ # of bs ≤ Q: How to search efficiently? Next, geometric interpretation of properties of LP.d let The fundamental theorem of LP (i)IF (ii) If optimal feasible solution => optimal bfs. 2008/2/2724Shi-Chung Chang, NTUEE, GIIE, GICE

Polytopes and LP 1. A polytope as the convex hull of a finite set of points Q: relation to D.O.? => can use a convex region to include a discrete region => can find a lower bound of the minimum 2. A polytope as the bounded intersection of half spaces => use linear inequalities to represent a polytope 3. 1) = m<n characterizes a polytope in 2) Any convex polytope can be alternatively viewed as the feasible region of of an LP via a simple transformation. (i.e. can be represented by a set of linear ineqs.) 2008/2/2725Shi-Chung Chang, NTUEE, GIIE, GICE

we now relate the vertex of a polytope to the bfs of the conesponding LP. vertex (or extreme point) => Let F be a convex set and IF it must hold that,then is called a vertex or an extreme point. 2008/2/2726Shi-Chung Chang, NTUEE, GIIE, GICE

§2.1.3 Geometry of LP Hyperplane: ? Closed half space: ? Ploytope: – A bounded and nonempty intersection of a finite number of half spaces – 3 kinds of faces Example: Facet dim. n-1 Vertex dim. 0 Edgedim. 1 Z (001) (010) y x (100) 2008/2/2727Shi-Chung Chang, NTUEE, GIIE, GICE

Convex Hull = Example v1 v2 v3 v4 v5 2008/2/2728Shi-Chung Chang, NTUEE, GIIE, GICE

Equivalence of Vertices and bfses Theorem Let A: m x n, =m<n, and F= X is a vertex of F  x is a bfs of Proof: “=>” Let x be a vertex of F and assume that and for i > k => Show that are linearly indep. : 2008/2/2729Shi-Chung Chang, NTUEE, GIIE, GICE

Assume liner dependence => such that set, => such that => => a contradiction to the fact that x is a vertex “<=“ try it by yourself 2008/2/2730Shi-Chung Chang, NTUEE, GIIE, GICE

§2.2 The Revised Simplex Method The simplex method for LP : G.B. Dantzig 1951 Key idea: Phase1: find a bfs of Note that an LP may not have a solution Example min s.t. 2008/2/2731Shi-Chung Chang, NTUEE, GIIE, GICE

phase 2 Allow one of the zero components of the bfs to become positive and force one of the original positive components to become zero. => How to pick “entering” and “leaving” component Cost Traditional form of the simplex method: Tableau => read by yourself Here we consider matrix form for conciseness of presentation and later developments. 2008/2/2732Shi-Chung Chang, NTUEE, GIIE, GICE

SLP: s.t. Assume P(A)=m. Partition A=[B:D] B: m linearly indep. Columns of A(Assume the first m cols.) (SLP) subject to 2008/2/2733Shi-Chung Chang, NTUEE, GIIE, GICE

If and a basic solution When from(2-4) (note that may not ≥0 Substituting(2-5) into the cost function Define as the relative cost vector => To minimize Z, we need only adjust How? 2008/2/2734Shi-Chung Chang, NTUEE, GIIE, GICE