Solving the Simple Oset Assignment Problem as a Traveling Salesman
|
|
- Paul Fox
- 5 years ago
- Views:
Transcription
1 Solving the Simple Oset Assignment Problem as a Traveling Salesman Michael Jünger and Sven Mallach 1 Institut für Informatik Lehrstuhl Prof. Dr. M. Jünger Universität zu Köln 19th June, 2013 M-SCOPES 2013, St. Goar 1 mallach@informatik.uni-koeln.de
2 Motivation: Address Code for ASIPs To save silicon area, ASIPs frequently do not support `base-plus-oset' addressing modes. 0FFFA AR FFF9 0FFFA 0FFFB 0FFFC 0FFFD
3 Motivation: Address Code for ASIPs To save silicon area, ASIPs frequently do not support `base-plus-oset' addressing modes. 0FFFC AR FFF9 0FFFA 0FFFB 0FFFC 0FFFD Instead: Indirect memory addressing only (oset 0). But often, modications to ARs can be encoded into other instructions if distance to new address is `small', e.g., 1 word. autoin-/decrement denoted, e.g., ADD *(AR0)+ / ADD *(AR0)-
4 Address Code - Example Suppose we are given a stack layout of local program variables of a basic block, e.g., {a, b,..., g} and a sequence of scheduled three-address-code instructions. a b g c f d e AR a b g c f d e c = a + b f = g - c... access sequence a b c g c f...
5 Address Code - Example 3-address code: c = a + b f = g - c access sequence: a b c g c f LDAR AR, &a // AR = a LOAD *(AR)+ // ACC = a,ar = b ADD *(AR) // ACC += b ADAR AR,2 // AR = c STOR *(AR)- // c = ACC,AR = g Stack layout: a b g c f d e
6 Address Code - Example 3-address code: c = a + b f = g - c access sequence: a b c g c f LDAR AR, &a // AR = a LOAD *(AR)+ // ACC = a,ar = b ADD *(AR) // ACC += b ADAR AR,2 // AR = c STOR *(AR)- // c = ACC,AR = g Stack layout: a b g c f d e
7 Address Code - Example 3-address code: c = a + b f = g - c access sequence: a b c g c f LDAR AR, &a // AR = a LOAD *(AR)+ // ACC = a,ar = b ADD *(AR) // ACC += b ADAR AR,2 // AR = c STOR *(AR)- // c = ACC,AR = g Stack layout: a b g c f d e
8 Address Code - Example 3-address code: c = a + b f = g - c access sequence: a b c g c f LDAR AR, &a // AR = a LOAD *(AR)+ // ACC = a,ar = b ADD *(AR) // ACC += b ADAR AR,2 // AR = c STOR *(AR)- // c = ACC,AR = g Stack layout: a b g c f d e
9 Address Code / SOA Non-neighboring accesses (`jumps') need additional address arithmetic instructions. ranges > 1 / Modify Registers: changing the `jump distance' also needs additional instructions. Since the stack layout (`osets') of local variables can be freely chosen and each autoin-/decrement saves code size and execution time it is natural to optimize the stack layout to maximize their use. Simple Oset Assignment (SOA) Problem
10 Access graphs First intuition: Place variable pairs with many access transitions as neighbors of each other.
11 Access graphs First intuition: Place variable pairs with many access transitions as neighbors of each other. Usual approach: Create an access graph G = (V, E) from an access sequence S as follows: S = a b c g c f c e c c f d
12 Access graphs First intuition: Place variable pairs with many access transitions as neighbors of each other. Usual approach: Create an access graph G = (V, E) from an access sequence S as follows: Let V represent the set of program variables, S = a b c g c f c e c c f d a b g c e f d
13 Access graphs First intuition: Place variable pairs with many access transitions as neighbors of each other. Usual approach: Create an access graph G = (V, E) from an access sequence S as follows: Let V represent the set of program variables, Add edge e = (u, v) E with weight w e = k if u and v are neighbors in S for k times. S = a b c g c f c e c c f d a c 1 1 b g 2 2 e 3 f 1 d
14 Access graphs a 1 1 c b g 2 2 e 3 f 1 d Theorem (Bartley [1992]): The optimum oset assignment corresponds to amaximum-weight Hamiltonian Path (MWHP) in the completed access graph.
15 Access graphs a 1 1 c b g 2 2 e 3 f 1 d 0 Theorem (Bartley [1992]): The optimum oset assignment corresponds to a Maximum-Weight Hamiltonian Path (MWHP) in the completed access graph.
16 Access graphs a 1 1 c b g 2 2 e 3 f 1 d Theorem (Liao [1996]): The optimum oset assignment corresponds to a Maximum-Weight Path Cover (MWPC) in the (original) access graph. The paths can be concatenated to a stack layout in arbitrary order.
17 Solving SOA In 2003, Leupers compared a set of existing SOA/MWPC heuristics with a benchmark set called OsetStone. However, due to a lack of optimum solutions, the quality of the heuristics could only be veried for some small instances. Our Contribution: An exact ILP approach to solve SOA as a Maximum-Weight Hamiltonian Cycle problem - delivering optimum solutions for all instances of OsetStone. Evaluation of the quality of the existing heuristics. A new heuristic based on a Lin-Kerninghan heuristic for TSPs. First results on OsetStone for a heuristic presented at SCOPES 2008.
18 SOA-MWHC SOA-MWHC: Branch-and-Cut algorithm for the Maximum-Weight Hamiltonian Cycle problem, working on a complete graph G = (V, E ) dened from an access graph G = (V, E) as follows: V = V {z} E = E E 0 E z where E 0 is the set of zero-weight edges for any edge e, e E E z = { {v, z} v V } (each having zero-weight, too) z a 1 1 c b f 1 g e d 0
19 SOA-MWHC SOA-MWHC: Branch-and-Cut algorithm for the Maximum-Weight Hamiltonian Cycle problem, working on a complete graph G = (V, E ) dened from an access graph G = (V, E) as follows: V = V {z} E = E E 0 E z where E 0 is the set of zero-weight edges for any edge e, e E E z = { {v, z} v V } (each having zero-weight, too) u 0 z 0 v u v
20 SOA-MWHC Transformation to a Hamiltonian Cycle problem yields a well-studied problem: With minimization objective this is the Traveling Salesman Problem (TSP). Knowledge about the polytope of Hamiltonian Cycles (tours) to solve the problem to optimality using integer programming. Possibility to directly use TSP-heuristics for SOA, such as the Lin-Kernighan algorithm.
21 SOA-MWHC Let G = (V, E) be a complete graph and denote with w e the weight of an edge e E. Further, we have decision variables x e = { 1, e cycle/tour T 0, otherwise Then, an ILP formulation for the MWHC problem is: max w e x e e E x(δ(v)) = 2 v V x(e(w )) W 1 W V x e {0, 1} e E (with δ(v) = {e = {v, w} E} and x(e(w )) = { x e e = {u, v} E and u, v W }).
22 SOA-MWHC max MWHC - IP Formulation w e x e e E x(δ(v)) = 2 v V x(e(w )) W 1 W V x e {0, 1} e E Branch & Cut LP-Solver Cutting Planes Completed Access Graph with Dummy Vertex a c z b g 2 f e 1 d 0 Optimum Hamiltonian Path a 1 b g 2 c e 3 f 1 d Separation Algorithms Branch & Bound Primal Heuristics stack-layout a b g c f...
23 Experiments - OsetStone OsetStone comprises realistic instances (access sequences) extracted from ANSI C programs. Several benchmarks consisting of multiple access sequences with up to 1336 program variables. Our Experiments: Only sequences with at least 10 variables. Summarized Oset Assignment Cost: Sum of explicit address arithmetic instructions needed for all sequences of a benchmark. OffsetStone Benchmarks adpcm access sequences fft access sequences gzip access sequences mp3 access sequences... access sequences
24 Experiments - Algorithm Overview SOA-Liao: A greedy heuristic presented by Liao [1996]. SOA-TB: Liao's heuristic extended by a tie-break function of Leupers and Marwedel [1997]. SOA-INC: An improvement heuristic by Atri et al. [2001] using SOA-Liao for an initial solution. SOA-INC-TB: As SOA-INC but using SOA-TB for an initial solution. SOA-GA: A genetic algorithm of Leupers and David [1998]. SOA-TB2 - like SOA-TB but with a dierent tie-break function of Ali et al. [2008] (SCOPES). SOA-MWHC: Our exact solver. SOA-TBLK: Our combination of SOA-TB with a Lin-Kernighan heuristic for TSPs.
25 Results - Quality Summarized Offset Assignment Cost (% to Optimum) fft Liao TB TB2 INC INC-TB TBLK GA MWHC Quality of SOA heuristics on OffsetStone viterbi anagram adpcm 8051 gsm cavity triangle mpeg2 mp3 klt dspstone h263 motion jpeg hmm flex sparse bdd anthr gzip gif2asc random f2c cc65 cpp codecs bison lpsolve dct-unr. fuzzy eqntott Benchmark
26 Results - Runtime INC-TB TBLK GA MWHC Runtime of selected SOA algorithms on OffsetStone w/o random instances Runtime (in s) 100 viterbi triangle sparse mpeg2 mp3 motion lpsolve klt jpeg hmm h263 gzip gsm gif2asc fuzzy flex fft f2c eqntott dspstone dct-unr. cpp codecs cc65 cavity bison bdd anthr anagram adpcm Benchmark
27 Summary of Main Results and Conclusions SOA-MWHC solves most of the instances to optimality within a few ms (on a Core i7 3.2 GHz, 6 GB RAM). All heuristics within 8.5% of optimum summarized oset assignment cost. On single instances 10% relative loss possible. Best heuristic appears to be SOA-INC-TB. Sometimes it is outperformed by SOA-TBLK which is much slower though. SOA-TBLK is faster than SOA-GA while delivering competitive solutions. SOA-TB2 was mostly inferior to SOA-TB.
28 Questions and Outlook Major question: Is OsetStone representative for the complexity of real-world instances? If so, optimal solutions for SOA could be achievable in compilers for a large set of them. However, then also the loss of the heuristics appears to be acceptable. If not, it would be nice to deliver a new benchmark set of instances. Going further: Try to exploit the structure of access graphs. Going further: Consider multiple ARs, ranges > 1 and modify registers.
Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik. Combinatorial Optimization (MA 4502)
Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik Combinatorial Optimization (MA 4502) Dr. Michael Ritter Problem Sheet 1 Homework Problems Exercise
More informationData Structures and Algorithms (CSCI 340)
University of Wisconsin Parkside Fall Semester 2008 Department of Computer Science Prof. Dr. F. Seutter Data Structures and Algorithms (CSCI 340) Homework Assignments The numbering of the problems refers
More informationFormulations and Algorithms for Minimum Connected Dominating Set Problems
Formulations and Algorithms for Minimum Connected Dominating Set Problems Abilio Lucena 1 Alexandre Salles da Cunha 2 Luidi G. Simonetti 3 1 Universidade Federal do Rio de Janeiro 2 Universidade Federal
More informationData Structures in Java
Data Structures in Java Lecture 21: Introduction to NP-Completeness 12/9/2015 Daniel Bauer Algorithms and Problem Solving Purpose of algorithms: find solutions to problems. Data Structures provide ways
More informationUnit 1A: Computational Complexity
Unit 1A: Computational Complexity Course contents: Computational complexity NP-completeness Algorithmic Paradigms Readings Chapters 3, 4, and 5 Unit 1A 1 O: Upper Bounding Function Def: f(n)= O(g(n)) if
More informationNP-Complete Problems and Approximation Algorithms
NP-Complete Problems and Approximation Algorithms Efficiency of Algorithms Algorithms that have time efficiency of O(n k ), that is polynomial of the input size, are considered to be tractable or easy
More informationPart III: Traveling salesman problems
Transportation Logistics Part III: Traveling salesman problems c R.F. Hartl, S.N. Parragh 1/282 Motivation Motivation Why do we study the TSP? c R.F. Hartl, S.N. Parragh 2/282 Motivation Motivation Why
More informationA Mixed-Integer Linear Program for the Traveling Salesman Problem with Structured Time Windows
A Mixed-Integer Linear Program for the Traveling Salesman Problem with Structured Time Windows Philipp Hungerländer Christian Truden 5th January 2017 Abstract In this extended abstract we introduce the
More information4/12/2011. Chapter 8. NP and Computational Intractability. Directed Hamiltonian Cycle. Traveling Salesman Problem. Directed Hamiltonian Cycle
Directed Hamiltonian Cycle Chapter 8 NP and Computational Intractability Claim. G has a Hamiltonian cycle iff G' does. Pf. Suppose G has a directed Hamiltonian cycle Γ. Then G' has an undirected Hamiltonian
More informationAlgorithms and Complexity theory
Algorithms and Complexity theory Thibaut Barthelemy Some slides kindly provided by Fabien Tricoire University of Vienna WS 2014 Outline 1 Algorithms Overview How to write an algorithm 2 Complexity theory
More informationAlgorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on
6117CIT - Adv Topics in Computing Sci at Nathan 1 Algorithms The intelligence behind the hardware Outline! Approximation Algorithms The class APX! Some complexity classes, like PTAS and FPTAS! Illustration
More informationLecture 4: NP and computational intractability
Chapter 4 Lecture 4: NP and computational intractability Listen to: Find the longest path, Daniel Barret What do we do today: polynomial time reduction NP, co-np and NP complete problems some examples
More informationZebo Peng Embedded Systems Laboratory IDA, Linköping University
TDTS 01 Lecture 8 Optimization Heuristics for Synthesis Zebo Peng Embedded Systems Laboratory IDA, Linköping University Lecture 8 Optimization problems Heuristic techniques Simulated annealing Genetic
More informationThe Multiple Traveling Salesperson Problem on Regular Grids
Philipp Hungerländer Anna Jellen Stefan Jessenitschnig Lisa Knoblinger Manuel Lackenbucher Kerstin Maier September 10, 2018 Abstract In this work we analyze the multiple Traveling Salesperson Problem (mtsp)
More informationJuly 18, Approximation Algorithms (Travelling Salesman Problem)
Approximation Algorithms (Travelling Salesman Problem) July 18, 2014 The travelling-salesman problem Problem: given complete, undirected graph G = (V, E) with non-negative integer cost c(u, v) for each
More informationNP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness
Lecture 19 NP-Completeness I 19.1 Overview In the past few lectures we have looked at increasingly more expressive problems that we were able to solve using efficient algorithms. In this lecture we introduce
More informationMixed Integer Programming:
Mixed Integer Programming: Analyzing 12 Years of Progress Roland Wunderling CPLEX Optimizer Architect Background 2001: Manfred Padberg s60 th birthday Bixby et al., Mixed-Integer Programming: A Progress
More informationSolution of the Train Platforming Problem
Solution of the Train Platforming Problem Alberto Caprara, Laura Galli, and Paolo Toth DEIS, University of Bologna Viale Risorgimento 2, 40136 Bologna, Italy {alberto.caprara,l.galli,paolo.toth}@unibo.it
More informationDiscrete (and Continuous) Optimization WI4 131
Discrete (and Continuous) Optimization WI4 131 Kees Roos Technische Universiteit Delft Faculteit Electrotechniek, Wiskunde en Informatica Afdeling Informatie, Systemen en Algoritmiek e-mail: C.Roos@ewi.tudelft.nl
More informationLecture 6 January 21, 2013
UBC CPSC 536N: Sparse Approximations Winter 03 Prof. Nick Harvey Lecture 6 January, 03 Scribe: Zachary Drudi In the previous lecture, we discussed max flow problems. Today, we consider the Travelling Salesman
More informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 32. Propositional Logic: Local Search and Outlook Martin Wehrle Universität Basel April 29, 2016 Propositional Logic: Overview Chapter overview: propositional logic
More informationTravelling Salesman Problem
Travelling Salesman Problem Fabio Furini November 10th, 2014 Travelling Salesman Problem 1 Outline 1 Traveling Salesman Problem Separation Travelling Salesman Problem 2 (Asymmetric) Traveling Salesman
More informationThe traveling salesman problem
Chapter 58 The traveling salesman problem The traveling salesman problem (TSP) asks for a shortest Hamiltonian circuit in a graph. It belongs to the most seductive problems in combinatorial optimization,
More information3.4 Relaxations and bounds
3.4 Relaxations and bounds Consider a generic Discrete Optimization problem z = min{c(x) : x X} with an optimal solution x X. In general, the algorithms generate not only a decreasing sequence of upper
More informationOptimization Bounds from Binary Decision Diagrams
Optimization Bounds from Binary Decision Diagrams J. N. Hooker Joint work with David Bergman, André Ciré, Willem van Hoeve Carnegie Mellon University ICS 203 Binary Decision Diagrams BDDs historically
More informationPart III: Traveling salesman problems
Transportation Logistics Part III: Traveling salesman problems c R.F. Hartl, S.N. Parragh 1/74 Motivation Motivation Why do we study the TSP? it easy to formulate it is a difficult problem many significant
More informationWeek Cuts, Branch & Bound, and Lagrangean Relaxation
Week 11 1 Integer Linear Programming This week we will discuss solution methods for solving integer linear programming problems. I will skip the part on complexity theory, Section 11.8, although this is
More informationDecision Problems TSP. Instance: A complete graph G with non-negative edge costs, and an integer
Decision Problems The theory of NP-completeness deals only with decision problems. Why? Because if a decision problem is hard, then the corresponding optimization problem must be hard too. For example,
More informationA Note on Symmetry Reduction for Circular Traveling Tournament Problems
Mainz School of Management and Economics Discussion Paper Series A Note on Symmetry Reduction for Circular Traveling Tournament Problems Timo Gschwind and Stefan Irnich April 2010 Discussion paper number
More informationThe Traveling Salesman Problem: An Overview. David P. Williamson, Cornell University Ebay Research January 21, 2014
The Traveling Salesman Problem: An Overview David P. Williamson, Cornell University Ebay Research January 21, 2014 (Cook 2012) A highly readable introduction Some terminology (imprecise) Problem Traditional
More information8.5 Sequencing Problems
8.5 Sequencing Problems Basic genres. Packing problems: SET-PACKING, INDEPENDENT SET. Covering problems: SET-COVER, VERTEX-COVER. Constraint satisfaction problems: SAT, 3-SAT. Sequencing problems: HAMILTONIAN-CYCLE,
More information5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1
5 Integer Linear Programming (ILP) E. Amaldi Foundations of Operations Research Politecnico di Milano 1 Definition: An Integer Linear Programming problem is an optimization problem of the form (ILP) min
More informationEdge Elimination for the Hamiltonian Cycle problem
Edge Elimination for the Hamiltonian Cycle problem Elliot Catt Pablo Moscato and Luke Mathieson University of Newcastle February 27, 2017 1 Abstract The Hamilton cycle and travelling salesman problem are
More informationLimits of Feasibility. Example. Complexity Relationships among Models. 1. Complexity Relationships among Models
Limits of Feasibility Wolfgang Schreiner Wolfgang.Schreiner@risc.jku.at Research Institute for Symbolic Computation (RISC) Johannes Kepler University, Linz, Austria http://www.risc.jku.at 1. Complexity
More informationCS 301: Complexity of Algorithms (Term I 2008) Alex Tiskin Harald Räcke. Hamiltonian Cycle. 8.5 Sequencing Problems. Directed Hamiltonian Cycle
8.5 Sequencing Problems Basic genres. Packing problems: SET-PACKING, INDEPENDENT SET. Covering problems: SET-COVER, VERTEX-COVER. Constraint satisfaction problems: SAT, 3-SAT. Sequencing problems: HAMILTONIAN-CYCLE,
More information10.3 Matroids and approximation
10.3 Matroids and approximation 137 10.3 Matroids and approximation Given a family F of subsets of some finite set X, called the ground-set, and a weight function assigning each element x X a non-negative
More informationStochastic Decision Diagrams
Stochastic Decision Diagrams John Hooker CORS/INFORMS Montréal June 2015 Objective Relaxed decision diagrams provide an generalpurpose method for discrete optimization. When the problem has a dynamic programming
More informationNP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]
NP-Completeness Andreas Klappenecker [based on slides by Prof. Welch] 1 Prelude: Informal Discussion (Incidentally, we will never get very formal in this course) 2 Polynomial Time Algorithms Most of the
More informationExercises NP-completeness
Exercises NP-completeness Exercise 1 Knapsack problem Consider the Knapsack problem. We have n items, each with weight a j (j = 1,..., n) and value c j (j = 1,..., n) and an integer B. All a j and c j
More informationTheoretical computer science: Turing machines
Theoretical computer science: Turing machines Matthias Springer Hasso-Plattner-Institut January 5, 2011 Overview 1. Turing machines 2. Universal Turing machines 3. Church-Turing thesis 4. Sorting: Insertion
More informationDiscrete Optimization 2010 Lecture 7 Introduction to Integer Programming
Discrete Optimization 2010 Lecture 7 Introduction to Integer Programming Marc Uetz University of Twente m.uetz@utwente.nl Lecture 8: sheet 1 / 32 Marc Uetz Discrete Optimization Outline 1 Intro: The Matching
More informationLecture 15 - NP Completeness 1
CME 305: Discrete Mathematics and Algorithms Instructor: Professor Aaron Sidford (sidford@stanford.edu) February 29, 2018 Lecture 15 - NP Completeness 1 In the last lecture we discussed how to provide
More informationInteger Programming ISE 418. Lecture 8. Dr. Ted Ralphs
Integer Programming ISE 418 Lecture 8 Dr. Ted Ralphs ISE 418 Lecture 8 1 Reading for This Lecture Wolsey Chapter 2 Nemhauser and Wolsey Sections II.3.1, II.3.6, II.4.1, II.4.2, II.5.4 Duality for Mixed-Integer
More informationCS/COE
CS/COE 1501 www.cs.pitt.edu/~nlf4/cs1501/ P vs NP But first, something completely different... Some computational problems are unsolvable No algorithm can be written that will always produce the correct
More informationDecision Diagrams for Discrete Optimization
Decision Diagrams for Discrete Optimization Willem Jan van Hoeve Tepper School of Business Carnegie Mellon University www.andrew.cmu.edu/user/vanhoeve/mdd/ Acknowledgments: David Bergman, Andre Cire, Samid
More informationAlternative Methods for Obtaining. Optimization Bounds. AFOSR Program Review, April Carnegie Mellon University. Grant FA
Alternative Methods for Obtaining Optimization Bounds J. N. Hooker Carnegie Mellon University AFOSR Program Review, April 2012 Grant FA9550-11-1-0180 Integrating OR and CP/AI Early support by AFOSR First
More informationAlgorithms and Theory of Computation. Lecture 22: NP-Completeness (2)
Algorithms and Theory of Computation Lecture 22: NP-Completeness (2) Xiaohui Bei MAS 714 November 8, 2018 Nanyang Technological University MAS 714 November 8, 2018 1 / 20 Set Cover Set Cover Input: a set
More information1 Heuristics for the Traveling Salesman Problem
Praktikum Algorithmen-Entwurf (Teil 9) 09.12.2013 1 1 Heuristics for the Traveling Salesman Problem We consider the following problem. We want to visit all the nodes of a graph as fast as possible, visiting
More informationA Survey on Travelling Salesman Problem
A Survey on Travelling Salesman Problem Sanchit Goyal Department of Computer Science University of North Dakota Grand Forks, North Dakota 58203 sanchitgoyal01@gmail.com Abstract The Travelling Salesman
More informationCS6999 Probabilistic Methods in Integer Programming Randomized Rounding Andrew D. Smith April 2003
CS6999 Probabilistic Methods in Integer Programming Randomized Rounding April 2003 Overview 2 Background Randomized Rounding Handling Feasibility Derandomization Advanced Techniques Integer Programming
More information1a. Introduction COMP6741: Parameterized and Exact Computation
1a. Introduction COMP6741: Parameterized and Exact Computation Serge Gaspers 12 1 School of Computer Science and Engineering, UNSW Sydney, Asutralia 2 Decision Sciences Group, Data61, CSIRO, Australia
More informationApproximation Algorithms
Approximation Algorithms What do you do when a problem is NP-complete? or, when the polynomial time solution is impractically slow? assume input is random, do expected performance. Eg, Hamiltonian path
More informationHamiltonian Cycle. Hamiltonian Cycle
Hamiltonian Cycle Hamiltonian Cycle Hamiltonian Cycle Problem Hamiltonian Cycle Given a directed graph G, is there a cycle that visits every vertex exactly once? Such a cycle is called a Hamiltonian cycle.
More informationBounds on the Traveling Salesman Problem
Bounds on the Traveling Salesman Problem Sean Zachary Roberson Texas A&M University MATH 613, Graph Theory A common routing problem is as follows: given a collection of stops (for example, towns, stations,
More informationCSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017
CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017 Linear Function f: R n R is linear if it can be written as f x = a T x for some a R n Example: f x 1, x 2 =
More informationUndecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65
Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving
More informationComputational Intractability 2010/4/15. Lecture 2
Computational Intractability 2010/4/15 Professor: David Avis Lecture 2 Scribe:Naoki Hatta 1 P and NP 1.1 Definition of P and NP Decision problem it requires yes/no answer. Example: X is a set of strings.
More informationParallel PIPS-SBB Multi-level parallelism for 2-stage SMIPS. Lluís-Miquel Munguia, Geoffrey M. Oxberry, Deepak Rajan, Yuji Shinano
Parallel PIPS-SBB Multi-level parallelism for 2-stage SMIPS Lluís-Miquel Munguia, Geoffrey M. Oxberry, Deepak Rajan, Yuji Shinano ... Our contribution PIPS-PSBB*: Multi-level parallelism for Stochastic
More informationScheduling and Optimization Course (MPRI)
MPRI Scheduling and optimization: lecture p. /6 Scheduling and Optimization Course (MPRI) Leo Liberti LIX, École Polytechnique, France MPRI Scheduling and optimization: lecture p. /6 Teachers Christoph
More informationA Mixed Integer Linear Program for Optimizing the Utilization of Locomotives with Maintenance Constraints
A Mixed Integer Linear Program for with Maintenance Constraints Sarah Frisch Philipp Hungerländer Anna Jellen Dominic Weinberger September 10, 2018 Abstract In this paper we investigate the Locomotive
More informationLin-Kernighan Heuristic. Simulated Annealing
DM63 HEURISTICS FOR COMBINATORIAL OPTIMIZATION Lecture 6 Lin-Kernighan Heuristic. Simulated Annealing Marco Chiarandini Outline 1. Competition 2. Variable Depth Search 3. Simulated Annealing DM63 Heuristics
More informationIntroduction to Complexity Theory
Introduction to Complexity Theory Read K & S Chapter 6. Most computational problems you will face your life are solvable (decidable). We have yet to address whether a problem is easy or hard. Complexity
More informationA New Approximation Algorithm for the Asymmetric TSP with Triangle Inequality By Markus Bläser
A New Approximation Algorithm for the Asymmetric TSP with Triangle Inequality By Markus Bläser Presented By: Chris Standish chriss@cs.tamu.edu 23 November 2005 1 Outline Problem Definition Frieze s Generic
More information8. INTRACTABILITY I. Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley. Last updated on 2/6/18 2:16 AM
8. INTRACTABILITY I poly-time reductions packing and covering problems constraint satisfaction problems sequencing problems partitioning problems graph coloring numerical problems Lecture slides by Kevin
More informationDiscrete Optimization in a Nutshell
Discrete Optimization in a Nutshell Integer Optimization Christoph Helmberg : [,] Contents Integer Optimization 2: 2 [2,2] Contents Integer Optimization. Bipartite Matching.2 Integral Polyhedra ( and directed
More informationHow hard is it to find a good solution?
How hard is it to find a good solution? Simons Institute Open Lecture November 4, 2013 Research Area: Complexity Theory Given a computational problem, find an efficient algorithm that solves it. Goal of
More information1 Reductions and Expressiveness
15-451/651: Design & Analysis of Algorithms November 3, 2015 Lecture #17 last changed: October 30, 2015 In the past few lectures we have looked at increasingly more expressive problems solvable using efficient
More informationAlgorithms: COMP3121/3821/9101/9801
NEW SOUTH WALES Algorithms: COMP3121/3821/9101/9801 Aleks Ignjatović School of Computer Science and Engineering University of New South Wales LECTURE 9: INTRACTABILITY COMP3121/3821/9101/9801 1 / 29 Feasibility
More informationLecture 14 - P v.s. NP 1
CME 305: Discrete Mathematics and Algorithms Instructor: Professor Aaron Sidford (sidford@stanford.edu) February 27, 2018 Lecture 14 - P v.s. NP 1 In this lecture we start Unit 3 on NP-hardness and approximation
More informationDiscrete (and Continuous) Optimization Solutions of Exercises 2 WI4 131
Discrete (and Continuous) Optimization Solutions of Exercises 2 WI4 131 Kees Roos Technische Universiteit Delft Faculteit Electrotechniek, Wiskunde en Informatica Afdeling Informatie, Systemen en Algoritmiek
More informationSearch and Lookahead. Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 4/6, 2012
Search and Lookahead Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 4/6, 2012 Search and Lookahead Enforcing consistency is one way of solving constraint networks:
More informationCS 320, Fall Dr. Geri Georg, Instructor 320 NP 1
NP CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu 320 NP 1 NP Complete A class of problems where: No polynomial time algorithm has been discovered No proof that one doesn t exist 320
More informationMVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms
MVE165/MMG631 Linear and integer optimization with applications Lecture 8 Discrete optimization: theory and algorithms Ann-Brith Strömberg 2017 04 07 Lecture 8 Linear and integer optimization with applications
More informationAlgorithm Design Strategies V
Algorithm Design Strategies V Joaquim Madeira Version 0.0 October 2016 U. Aveiro, October 2016 1 Overview The 0-1 Knapsack Problem Revisited The Fractional Knapsack Problem Greedy Algorithms Example Coin
More informationNP and Computational Intractability
NP and Computational Intractability 1 Polynomial-Time Reduction Desiderata'. Suppose we could solve X in polynomial-time. What else could we solve in polynomial time? don't confuse with reduces from Reduction.
More informationEvaluation and Validation
Evaluation and Validation Jian-Jia Chen (Slides are based on Peter Marwedel) TU Dortmund, Informatik 12 Germany Springer, 2010 2016 年 01 月 05 日 These slides use Microsoft clip arts. Microsoft copyright
More informationWarm-up Find the shortest trip (total distance) starting and ending in Chicago and visiting each other city once.
Warm-up Find the shortest trip (total distance) starting and ending in Chicago and visiting each other city once. Minimum-cost Hamiltonian Circuits Practice Homework time Minneapolis Cleveland 779 354
More informationVIII. NP-completeness
VIII. NP-completeness 1 / 15 NP-Completeness Overview 1. Introduction 2. P and NP 3. NP-complete (NPC): formal definition 4. How to prove a problem is NPC 5. How to solve a NPC problem: approximate algorithms
More information12. LOCAL SEARCH. gradient descent Metropolis algorithm Hopfield neural networks maximum cut Nash equilibria
12. LOCAL SEARCH gradient descent Metropolis algorithm Hopfield neural networks maximum cut Nash equilibria Lecture slides by Kevin Wayne Copyright 2005 Pearson-Addison Wesley h ttp://www.cs.princeton.edu/~wayne/kleinberg-tardos
More informationCSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits
CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits Chris Calabro January 13, 2016 1 RAM model There are many possible, roughly equivalent RAM models. Below we will define one in the fashion
More informationAsymmetric Traveling Salesman Problem (ATSP): Models
Asymmetric Traveling Salesman Problem (ATSP): Models Given a DIRECTED GRAPH G = (V,A) with V = {,, n} verte set A = {(i, j) : i V, j V} arc set (complete digraph) c ij = cost associated with arc (i, j)
More informationSIMU L TED ATED ANNEA L NG ING
SIMULATED ANNEALING Fundamental Concept Motivation by an analogy to the statistical mechanics of annealing in solids. => to coerce a solid (i.e., in a poor, unordered state) into a low energy thermodynamic
More informationOutline. Outline. Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING. 1. Scheduling CPM/PERT Resource Constrained Project Scheduling Model
Outline DMP204 SCHEDULING, TIMETABLING AND ROUTING Lecture 3 and Mixed Integer Programg Marco Chiarandini 1. Resource Constrained Project Model 2. Mathematical Programg 2 Outline Outline 1. Resource Constrained
More informationChapter 0 Introduction Suppose this was the abstract of a journal paper rather than the introduction to a dissertation. Then it would probably end wit
Chapter 0 Introduction Suppose this was the abstract of a journal paper rather than the introduction to a dissertation. Then it would probably end with some cryptic AMS subject classications and a few
More informationSection #2: Linear and Integer Programming
Section #2: Linear and Integer Programming Prof. Dr. Sven Seuken 8.3.2012 (with most slides borrowed from David Parkes) Housekeeping Game Theory homework submitted? HW-00 and HW-01 returned Feedback on
More informationResource Constrained Project Scheduling Linear and Integer Programming (1)
DM204, 2010 SCHEDULING, TIMETABLING AND ROUTING Lecture 3 Resource Constrained Project Linear and Integer Programming (1) Marco Chiarandini Department of Mathematics & Computer Science University of Southern
More informationCompiling Techniques
Lecture 11: Introduction to 13 November 2015 Table of contents 1 Introduction Overview The Backend The Big Picture 2 Code Shape Overview Introduction Overview The Backend The Big Picture Source code FrontEnd
More informationCMSC 441: Algorithms. NP Completeness
CMSC 441: Algorithms NP Completeness Intractable & Tractable Problems Intractable problems: As they grow large, we are unable to solve them in reasonable time What constitutes reasonable time? Standard
More informationCOT 6936: Topics in Algorithms! Giri Narasimhan. ECS 254A / EC 2443; Phone: x3748
COT 6936: Topics in Algorithms! Giri Narasimhan ECS 254A / EC 2443; Phone: x3748 giri@cs.fiu.edu https://moodle.cis.fiu.edu/v2.1/course/view.php?id=612 Gaussian Elimination! Solving a system of simultaneous
More informationMultiple Sequence Alignment: Complexity, Gunnar Klau, January 12, 2006, 12:
Multiple Sequence Alignment: Complexity, Gunnar Klau, January 12, 2006, 12:23 6001 6.1 Computing MSAs So far, we have talked about how to score MSAs (including gaps and benchmarks). But: how do we compute
More informationSatisfiability Testing of Boolean Combinations of Pseudo-Boolean Constraints using Local-search Techniques
Satisfiability Testing of Boolean Combinations of Pseudo-Boolean Constraints using Local-search Techniques Lengning Liu Mirosław Truszczyński February 3, 27 Abstract Some search problems are most directly
More informationImprovements to Core-Guided Binary Search for MaxSAT
Improvements to Core-Guided Binary Search for MaxSAT A.Morgado F.Heras J.Marques-Silva CASL/CSI, University College Dublin Dublin, Ireland SAT, June 2012 Outline Motivation Previous Algorithms - Overview
More informationOptimization Prof. A. Goswami Department of Mathematics Indian Institute of Technology, Kharagpur. Lecture - 20 Travelling Salesman Problem
Optimization Prof. A. Goswami Department of Mathematics Indian Institute of Technology, Kharagpur Lecture - 20 Travelling Salesman Problem Today we are going to discuss the travelling salesman problem.
More informationAlgorithms Design & Analysis. Approximation Algorithm
Algorithms Design & Analysis Approximation Algorithm Recap External memory model Merge sort Distribution sort 2 Today s Topics Hard problem Approximation algorithms Metric traveling salesman problem A
More informationInteger Linear Programming (ILP)
Integer Linear Programming (ILP) Zdeněk Hanzálek, Přemysl Šůcha hanzalek@fel.cvut.cz CTU in Prague March 8, 2017 Z. Hanzálek (CTU) Integer Linear Programming (ILP) March 8, 2017 1 / 43 Table of contents
More informationComputers and Intractability. The Bandersnatch problem. The Bandersnatch problem. The Bandersnatch problem. A Guide to the Theory of NP-Completeness
Computers and Intractability A Guide to the Theory of NP-Completeness The Bible of complexity theory Background: Find a good method for determining whether or not any given set of specifications for a
More informationDual fitting approximation for Set Cover, and Primal Dual approximation for Set Cover
duality 1 Dual fitting approximation for Set Cover, and Primal Dual approximation for Set Cover Guy Kortsarz duality 2 The set cover problem with uniform costs Input: A universe U and a collection of subsets
More information10.4 The Kruskal Katona theorem
104 The Krusal Katona theorem 141 Example 1013 (Maximum weight traveling salesman problem We are given a complete directed graph with non-negative weights on edges, and we must find a maximum weight Hamiltonian
More informationDense Arithmetic over Finite Fields with CUMODP
Dense Arithmetic over Finite Fields with CUMODP Sardar Anisul Haque 1 Xin Li 2 Farnam Mansouri 1 Marc Moreno Maza 1 Wei Pan 3 Ning Xie 1 1 University of Western Ontario, Canada 2 Universidad Carlos III,
More informationComputers and Intractability
Computers and Intractability A Guide to the Theory of NP-Completeness The Bible of complexity theory M. R. Garey and D. S. Johnson W. H. Freeman and Company, 1979 The Bandersnatch problem Background: Find
More information