Computationally speaking, we can partition problems into two categories. Easy Problems and Hard Problems We can say that easy problem ( or in some languages.

Slides:



Advertisements
Similar presentations
1 Lecture 2 Shortest-Path Problems Assignment Problems Transportation Problems.
Advertisements

Integer linear programming Optimization problems where design variables have to be integers are more difficult than ones with continuous variables. The.
Network Flows. 2 Ardavan Asef-Vaziri June-2013Transportation Problem and Related Topics Table of Contents Chapter 6 (Network Optimization Problems) Minimum-Cost.
1 1 BA 452 Lesson B.2 Transshipment and Shortest Route ReadingsReadings Chapter 6 Distribution and Network Models.
Lecture 10: Integer Programming & Branch-and-Bound
Chapter 7 Maximum Flows: Polynomial Algorithms
Solving Quadratic Equations by Factoring Algebra I.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Complexity 15-1 Complexity Andrei Bulatov Hierarchy Theorem.
TSP Travelling Salesperson Problem (TSP) Very famous problem Many practical applications Very easy to describe Very difficult to solve (Curse of.
Computational problems, algorithms, runtime, hardness
1 Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a 1, a 2, …, a n } and a size.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
Analysis of Algorithms CS 477/677
Pseudo-polynomial time algorithm (The concept and the terminology are important) Partition Problem: Input: Finite set A=(a1, a2, …, an} and a size s(a)
Two Discrete Optimization Problems Problem #2: The Minimum Cost Spanning Tree Problem.
Math 3120 Differential Equations with Boundary Value Problems
Solution methods for Discrete Optimization Problems.
1 Integrality constraints Integrality constraints are often crucial when modeling optimizayion problems as linear programs. We have seen that if our linear.
EXAMPLE 4 Solve proportions SOLUTION a x 16 = Multiply. Divide each side by 10. a x 16 = = 10 x5 16 = 10 x80 = x8 Write original proportion.
EXAMPLE 4 Solve proportions SOLUTION a x 16 = Multiply. Divide each side by 10. a x 16 = = 10 x5 16 = 10 x80 = x8 Write original proportion.
Do Now Pass out calculators. Solve the following system by graphing: Graph paper is in the back. 5x + 2y = 9 x + y = -3 Solve the following system by using.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Network Models (2) Tran Van Hoai Faculty of Computer Science & Engineering HCMC University of Technology Tran Van Hoai.
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.
Algebra I Chapter 10 Review
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
Analysis of Algorithms
Goal: Solve a system of linear equations in two variables by the linear combination method.
6.2 Polynomials and Linear Functions
Simplify a rational expression
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
1 Prune-and-Search Method 2012/10/30. A simple example: Binary search sorted sequence : (search 9) step 1  step 2  step 3  Binary search.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Linear Equation The equation Which express the real or complex quantity b in terms of the unknowns and the real or complex constants is called a linear.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Integer Programming (정수계획법)
Solve x 2 +3x – 5 = 11 xx2x2 +3x-5X 2 +3x-5High/ Low L.
Prerequisite Skills VOCABULARY CHECK 40 ANSWER What is the least common denominator of and ? Which equation is a direct variation equation,
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
Lagrangean Relaxation
Thursday, May 2 Dynamic Programming – Review – More examples Handouts: Lecture Notes.
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
Computationally speaking, we can partition problems into two categories. Easy Problems and Hard Problems We can say that easy problem ( or in some languages.
Integer Programming. 2 Ardavan Asef-Vaziri June-2013Integer Programming Computationally speaking, we can partition problems into two categories. Easy.
Solving Quadratic Equations Using the Zero Product Property March 18, 2014.
Chapter 13 Backtracking Introduction The 3-coloring problem
Section 3.5 Solving Systems of Linear Equations in Two Variables by the Addition Method.
NPC.
The Multicommodity Flow Problem Updated 21 April 2008.
Management Science 461 Lecture 3 – Covering Models September 23, 2008.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or.
Introduction to Integer Programming Integer programming models Thursday, April 4 Handouts: Lecture Notes.
ICS 353: Design and Analysis of Algorithms Backtracking King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Solve Linear Systems by Elimination February 3, 2014 Pages
3.3 Solving Linear Systems by Linear Combination 10/12/12.
Great Theoretical Ideas in Computer Science.
Network Flows Based on the book: Introduction to Management Science. Hillier & Hillier. McGraw-Hill.
More NP-Complete and NP-hard Problems
EMIS 8373: Integer Programming
Traveling Salesman Problem
6-2 Solving Systems using Substitution
Solving Equations by Factoring and Problem Solving
Solve a system of linear equation in two variables
Integer Programming (정수계획법)
Integer Programming (정수계획법)
Chapter 6 Network Flow Models.
Solving Quadratic Equations by Factoring
Presentation transcript:

Computationally speaking, we can partition problems into two categories. Easy Problems and Hard Problems We can say that easy problem ( or in some languages polynomial problems or P problems) are those problems with their solution time proportional to n k. Where n is the number of variables in the problem, and k is a constant, say 2, 3, 4 … Let’s assume that k = 2. Therefore, easy problems are those problems with their solution time proportional to n 2. Where n is the number of variables in the problem. Difficult problems (or NP-hard) problems are those problems with their solution time proportional to k n, or in our case 2 n. Computational Complexity

Suppose there is a P problem with n variables which is solved in one hour on a personal computer. If the power of the computer is increased by 1000 times, and if we have one century time to solve the problem, then we have the following proportionality n 2 1 x ×100×365×24  x > 29000n Computational Complexity Under the new technology-time conditions we can solve a problem where the number of variables (the size of the problem) is more than 29,000 times the size of the original problem.

Now suppose the problem is NP-hard, therefore, we have the following proportionality 2 n 1 2 x 1000×100×365×24  x = n +29 Computational Complexity Under the new technology-time conditions we can solve a problem with 29 additional variables!

Binary Variables

1- Exactly one of the two projects is selected 2- At least one of the two projects is selected 3-At most one of the two projects is selected 4- None of the projects should be selected Exactly one, at least one, at most one, none

1- Both projects must be selected 2- none, or one or both of projects are selected 3- If project 1 is selected then project 2 must be selected 4- If project 1 is selected then project 2 could not be selected Both, at most 2

More Practice

Either project 1&2 or projects 3&4&5 are selected More Practice

Consider a linear program with the following set of constraints: 12x x x 3 ≤ x x x 3 ≤ x x x 3 ≤ x x x 3 ≥ 1600 Suppose that meeting 3 out of 4 of these constraints is “good enough”. One out of n constraints

Go back to crashing problem A Constraint With k Possible Values y 1 + y 2 = 10 or 20 or 100

Answers 1- Exactly one of the two projects is selected X1+X2=1 2- At least one of the two projects is selected X1+X2>=1 3-At most one of the two projects is selected X1+X2 =X1 7- If project 1 is selected then project 2 could not be selected This is the same as at most one of the two X1+X2<=1

Answers 8- Either project 1&2 or projects 3&4&5 are selected X1=X2 X3=X4=X5 X1+X3<=1 10- y 1 + y 2 = 10 or 20 or 100 y1+y2 = 10 z1+20z2+100z3 z1+z2+z3=1

Example

Decision Variables and Formulation x ij : The decision variable for the directed arc from node i to nod j. x ij = 1 if arc ij is on the shortest route x ij = 0 if arc ij is not on the shortest route  x ij -  x ji = 0  i  N \ O and D  x oj =1  x iD = 1 Min Z =  l ij x ij

Example x 13 + x 14 + x 12 = 1 + x 57 + x 67 = 1 + x 35 - x 13 = 0 + x 45 + x 46 - x 14 = 0 …. ….. Min Z = + 5x x x x x x x x x 67

Find the Shortest Route O D