The quest for finding Hamiltonian cycles

Size: px
Start display at page:

Download "The quest for finding Hamiltonian cycles"

Transcription

1 The quest for finding Hamiltonian cycles Giang Nguyen School of Mathematical Sciences University of Adelaide

2 Travelling Salesman Problem Given a list of cities and distances between cities, what is the shortest route that visits every city exactly once and returns to the origin city?

3 Travelling Salesman Problem Given a list of cities and distances between cities, what is the shortest route that visits every city exactly once and returns to the origin city? Hamiltonian Cycle Problem Given a list of cities and connections between cities, is there a route that visits every city exactly once and returns to the origin city?

4 Travelling Salesman Problem Given a list of cities and distances between cities, what is the shortest route that visits every city exactly once and returns to the origin city? Hamiltonian Cycle Problem Given a list of cities and connections between cities, is there a route that visits every city exactly once and returns to the origin city?

5 Travelling Salesman Problem Given a list of cities and distances between cities, what is the shortest route that visits every city exactly once and returns to the origin city? Hamiltonian Cycle Problem Given a list of cities and connections between cities, is there a route that visits every city exactly once and returns to the origin city? Both problems are NP-hard.

6 TSP and HCP are NP-hard

7 TSP and HCP are NP-hard P Problems for which a solution can be found in polynomial time

8 TSP and HCP are NP-hard P NP Problems for which a solution can be found in polynomial time Problems for which a solution can be verified in polynomial time

9 TSP and HCP are NP-hard P NP P = NP? Problems for which a solution can be found in polynomial time Problems for which a solution can be verified in polynomial time One of the seven Millennium Prize Problems

10 TSP and HCP are NP-hard P NP P = NP? Problems for which a solution can be found in polynomial time Problems for which a solution can be verified in polynomial time One of the seven Millennium Prize Problems NP-hard Finding a polynomial-time algorithm to solve any NP-hard problem would lead to polynomial-time algorithms for all NP problems.

11 Solving the Hamiltonian Cycle Problem for a given graph (Graph Theory)

12 Solving the Hamiltonian Cycle Problem for a given graph (Graph Theory) Optimising an expected function over a set of actions permitted on the graph (Markov Decision Processes)

13 Solving the Hamiltonian Cycle Problem for a given graph (Graph Theory) Optimising an expected function over a set of actions permitted on the graph (Markov Decision Processes) Maximising a determinant function over a set of doubly stochastic matrices defined on the graph (Linear Algebra)

14 Hamiltonian Cycle Problem and Markov Decision Processes

15 Embedding the HCP in a Markov decision process

16 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N}

17 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i)

18 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i)

19 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

20 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

21 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

22 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

23 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

24 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

25 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia

26 Embedding the HCP in a Markov decision process State space S = {1, 2,..., N} Action space A(i) Policy f chooses a A(i) at state i with probability f ia Transition probability matrix P(f)

27 A deterministic policy f and its transition probability matrix P(f) =

28 A randomised policy f 1 2 α 1 α 5 6 and its transition probability matrix P(f) = α 0 1 α α 0 α α 0 1 α α 0 α 0

29 Maps the policy space into a discounted occupation measure space X β, where x ia (f) := {v[(i βp(f)) 1 ]} i f ia Discount factor β (0, 1) Initial state distribution v = (1, 0,..., 0)

30 Maps the policy space into a discounted occupation measure space X β, where x ia (f) := {v[(i βp(f)) 1 ]} i f ia Discount factor β (0, 1) Initial state distribution v = (1, 0,..., 0) HCP Constrained discounted MDP (Feinberg, 2000)

31 Quadratic program (QP) a A(i) x ia β b A(i) a A(1) x bi = δ i1, i = 1,..., N (1) x ia 0, i = 1,..., N, a A(i) (2) 1 x 1a = 1 β N (3) x ia x ib = 0, i = 1,..., N, a b A(i) (4)

32 Quadratic program (QP) a A(i) x ia β b A(i) a A(1) x bi = δ i1, i = 1,..., N (1) x ia 0, i = 1,..., N, a A(i) (2) 1 x 1a = 1 β N (3) x ia x ib = 0, i = 1,..., N, a b A(i) (4) (1) & (2): Solution x is feasible on the given graph

33 Quadratic program (QP) a A(i) x ia β b A(i) a A(1) x bi = δ i1, i = 1,..., N (1) x ia 0, i = 1,..., N, a A(i) (2) 1 x 1a = 1 β N (3) x ia x ib = 0, i = 1,..., N, a b A(i) (4) (1) & (2): Solution x is feasible on the given graph (3): Property of a Hamiltonian cycle

34 Quadratic program (QP) a A(i) x ia β b A(i) a A(1) x bi = δ i1, i = 1,..., N (1) x ia 0, i = 1,..., N, a A(i) (2) 1 x 1a = 1 β N (3) x ia x ib = 0, i = 1,..., N, a b A(i) (4) (1) & (2): Solution x is feasible on the given graph (3): Property of a Hamiltonian cycle (4): Deterministic

35 Linear programming relaxation (LP) a A(i) x ia β b A(i) a A(1) x bi = δ i1, i = 1,..., N (1) x ia 0, i = 1,..., N, a A(i) (2) x 1a = 1 1 β N (3) x ia x ib = 0, i = 1,..., N, a b A(i)

36 Basic feasible solutions

37 Basic feasible solutions

38 A 1-randomized policy is deterministic at every vertex except j.

39 A 1-randomized policy is deterministic at every vertex except j. splitting vertex j: two outgoing edges (j, a) and (j, b)

40 A 1-randomized policy is deterministic at every vertex except j. splitting vertex j: two outgoing edges (j, a) and (j, b) splitting probabilities: probability of choosing an edge at j

41 A 1-randomized policy is deterministic at every vertex except j. splitting vertex j: two outgoing edges (j, a) and (j, b) splitting probabilities: probability of choosing an edge at j Can be decomposed into two deterministic policies.

42 A deterministic policy can be one of the three types:

43 A deterministic policy can be one of the three types: a Hamiltonian cycle

44 A deterministic policy can be one of the three types: a Hamiltonian cycle a short-cycle policy: has a cycle going through vertex

45 A deterministic policy can be one of the three types: a Hamiltonian cycle a short-cycle policy: has a cycle going through vertex a noose-cycle policy: has no cycle going through vertex

46 Theorem A basic feasible solution to (LP) is either: a Hamiltonian cycle, or 1-randomized policy that is a convex combination of a short-cycle policy and a noose-cycle policy.

47 Theorem A basic feasible solution to (LP) is either: a Hamiltonian cycle, or 1-randomized policy that is a convex combination of a short-cycle policy and a noose-cycle policy

48 Theorem A basic feasible solution to (LP) is either: a Hamiltonian cycle, or 1-randomized policy that is a convex combination of a short-cycle policy and a noose-cycle policy. Theorem (i) For such a pair of short-cycle and noose-cycle policies, there exists only one convex combination that is a basic feasible solution. (ii) Formulae for splitting probabilities are derived.

49 Proposed algorithm: LP relaxation + branch and fix

50 Proposed algorithm: LP relaxation + branch and fix

51 Proposed algorithm: LP relaxation + branch and fix

52 Proposed algorithm: LP relaxation + branch and fix

53 Proposed algorithm: LP relaxation + branch and fix

54 Hamiltonian Non-Hamiltonian Graph Executed Possible Run Size Branches Branches Time Dodecahedron : Knight s Tour :38 Petersen :01 Coxeter :23

55 Hamiltonian Non-Hamiltonian Average Min Max Graph Executed Executed Executed Possible Size Branches Branches Branches Branches

56 Room for improvement Introduce good objective functions for the (LP). Impose constraints on splitting probabilities to eliminate more 1-randomized policies. Consider contracted graphs to reduce graph size at each iteration.

57 Hamiltonian Cycle Problem and Linear Algebra

58 A deterministic policy f and its transition probability matrix P(f) =

59 A randomised policy f 1 2 α 1 α 5 6 and its transition probability matrix P(f) = α 0 1 α α 0 α α 0 1 α α 0 α 0

60 Theorem (Borkar, Ejov & Filar, 2006) DS: all doubly stochastic policies HCP is equivalent to minimize [(I P ε + 1 N J) 1 ] 11 over all P DS.

61 Computational difficulties with optimisation algorithms Evaluating inverses [(I P ε + 1 N J) 1 ] 11 := [A 1 (P ε )] 11 Dense Hessian matrices, due to perturbation

62 Computational difficulties with optimisation algorithms Evaluating inverses [(I P ε + 1 N J) 1 ] 11 := [A 1 (P ε )] 11 Dense Hessian matrices, due to perturbation Applying the adjoint form of the inverse: [A 1 (P ε )] 11 = det A 11(P ε ) det A(P ε )

63 Computational difficulties with optimisation algorithms Evaluating inverses [(I P ε + 1 N J) 1 ] 11 := [A 1 (P ε )] 11 Dense Hessian matrices, due to perturbation Applying the adjoint form of the inverse: [A 1 (P ε )] 11 = det A 11(P ε ) det A(P ε ) Replace minimizing [A 1 (P ε )] 11 with maximizing det A(P ε ) and drop perturbation

64 Theorem For any graph G and any policy P F, 0 det A(P) k, where k is the length of the longest cycle in G.

65 Theorem For any graph G and any policy P F, 0 det A(P) k, where k is the length of the longest cycle in G. Non-Hamiltonian Graph (of size N = 10, and k = 9) det A(P) = 9 det A(P) = 8 det A(P) = 0

66 Theorem For any graph G and any policy P F, 0 det A(P) k, where k is the length of the longest cycle in G. Hamiltonian Graph (of size N = 10, and k = 10) det A(P) = 10 det A(P) = 10 det A(P) = 8

67 Theorem For any graph G and any policy P F, 0 det A(P) k, where k is the length of the longest cycle in G. Positive gap between non-hamiltonian and Hamiltonian graphs [ ] [ ] max det A(P) + 1 max det A(P) P non-ham P Ham

68 HCP is equivalent to maximize det A(P) over all P DS.

69 HCP is equivalent to maximize det A(P) over all P DS. Graph of det A(P λ ) where P λ = λ 1P 1 + λ 2P 2 + λ 3P 3.

70 HCP is equivalent to maximize det A(P) over all P DS. Non-linear & non-concave Extreme points correspond to deterministic policies Graph of det A(P λ ) where P λ = λ 1P 1 + λ 2P 2 + λ 3P 3.

71 HCP is equivalent to maximize det A(P) over all P DS. Non-linear & non-concave Extreme points correspond to deterministic policies Empirically, no interior max or min Graph of det A(P λ ) where P λ = λ 1P 1 + λ 2P 2 + λ 3P 3.

72 Analogous interpretation for eigenvalues Every stochastic matrix P has at least one eigenvalue λ N = 1 (Perron Frobenius Theorem) Corollary For any stochastic N N matrix P, (1 λ i ) N, N 1 i=1 where λ i are the eigenvalues of P, excluding λ N = 1.

73 Theorem Consider the symmetric linear perturbation: P ε := (1 ε)p + ε N J. For any graph G, any stochastic P F, and ε [0, 1) 0 det A(P ε ) 1 (1 ε)k ε = k + ε( ) + ε 2 ( ) + O(ε 3 ), where k is the length of the longest cycle in G. This demonstrates the robustness of the determinant function.

74 S: stochastic policies, P : stationary distribution matrix, ε [0, 1) Theorem HCP is equivalent to maximize det(i P ε + 1 N J) over all P S. Theorem HCP is equivalent to minimize Trace[(I P ε + P ) 1 ] over all P S.

A Markov Chain Inspired View of Hamiltonian Cycle Problem

A Markov Chain Inspired View of Hamiltonian Cycle Problem A Markov Chain Inspired View of Hamiltonian Cycle Problem December 12, 2012 I hereby acknowledge valuable collaboration with: W. Murray (Stanford University) V.S. Borkar (Tata Inst. for Fundamental Research)

More information

Hamiltonian Cycle Problem and Cross Entropy. Passing Through the Nodes by Learning

Hamiltonian Cycle Problem and Cross Entropy. Passing Through the Nodes by Learning : Passing Through the Nodes by Learning Centre for Industrial and Applied Mathematics (CIAM) University of South Australia, Mawson Lakes SA 5095 Australia A Conference on the Occasion of R.Y. Rubinstein

More information

Travelling Salesman Problem

Travelling 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 information

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University NP-Completeness CptS 223 Advanced Data Structures Larry Holder School of Electrical Engineering and Computer Science Washington State University 1 Hard Graph Problems Hard means no known solutions with

More information

8.3 Hamiltonian Paths and Circuits

8.3 Hamiltonian Paths and Circuits 8.3 Hamiltonian Paths and Circuits 8.3 Hamiltonian Paths and Circuits A Hamiltonian path is a path that contains each vertex exactly once A Hamiltonian circuit is a Hamiltonian path that is also a circuit

More information

Solving the Hamiltonian Cycle problem using symbolic determinants

Solving the Hamiltonian Cycle problem using symbolic determinants Solving the Hamiltonian Cycle problem using symbolic determinants V. Ejov, J.A. Filar, S.K. Lucas & J.L. Nelson Abstract In this note we show how the Hamiltonian Cycle problem can be reduced to solving

More information

Approximations of the Convex Hull of Hamiltonian Cycles for Cubic Graphs

Approximations of the Convex Hull of Hamiltonian Cycles for Cubic Graphs Approximations of the Convex Hull of Hamiltonian Cycles for Cubic Graphs Asghar Moeini Korbekandi School of Computer Science, Engineering and Mathematics Faculty of Science and Engineering Flinders University

More information

Markov decision processes and interval Markov chains: exploiting the connection

Markov decision processes and interval Markov chains: exploiting the connection Markov decision processes and interval Markov chains: exploiting the connection Mingmei Teo Supervisors: Prof. Nigel Bean, Dr Joshua Ross University of Adelaide July 10, 2013 Intervals and interval arithmetic

More information

A 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 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 information

Controlled Markov Chains, Graphs, and Hamiltonicity

Controlled Markov Chains, Graphs, and Hamiltonicity Foundations and Trends R in Stochastic Systems Vol. 1, No. 2 (2006) 77 162 c 2007 J. A. Filar DOI: 10.1561/0900000003 Controlled Markov Chains, Graphs, and Hamiltonicity Jerzy A. Filar School of Mathematics

More information

NP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g.

NP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g. NP-Completeness ch34 Hewett Problem Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g., O(2 n ) computationally feasible poly-time alg. sol. E.g., O(n k ) No

More information

Data Structures and Algorithms (CSCI 340)

Data 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 information

NP and Computational Intractability

NP 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 information

Tractable & Intractable Problems

Tractable & Intractable Problems Tractable & Intractable Problems We will be looking at : What is a P and NP problem NP-Completeness The question of whether P=NP The Traveling Salesman problem again Programming and Data Structures 1 Polynomial

More information

NP-completeness. Chapter 34. Sergey Bereg

NP-completeness. Chapter 34. Sergey Bereg NP-completeness Chapter 34 Sergey Bereg Oct 2017 Examples Some problems admit polynomial time algorithms, i.e. O(n k ) running time where n is the input size. We will study a class of NP-complete problems

More information

NP-Complete Problems and Approximation Algorithms

NP-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 information

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

CS 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 information

Bounds on the Traveling Salesman Problem

Bounds 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 information

An Interior Point Heuristic for the Hamiltonian Cycle Problem via Markov Decision Processes

An Interior Point Heuristic for the Hamiltonian Cycle Problem via Markov Decision Processes An Interior Point Heuristic for the Hamiltonian Cycle Problem via Markov Decision Processes Jerzy Filar Jacek Gondzio Vladimir Ejov April 3, 2003 Abstract We consider the Hamiltonian cycle problem embedded

More information

SAT, Coloring, Hamiltonian Cycle, TSP

SAT, Coloring, Hamiltonian Cycle, TSP 1 SAT, Coloring, Hamiltonian Cycle, TSP Slides by Carl Kingsford Apr. 28, 2014 Sects. 8.2, 8.7, 8.5 2 Boolean Formulas Boolean Formulas: Variables: x 1, x 2, x 3 (can be either true or false) Terms: t

More information

Hamiltonian Cycles and Singularly Perturbed Markov Chains

Hamiltonian Cycles and Singularly Perturbed Markov Chains Hamiltonian Cycles and Singularly Perturbed Markov Chains Vladimir Ejov Jerzy A. Filar Minh-Tuan Nguyen School of Mathematics University of South Australia Mawson Lakes Campus, Mawson Lakes, SA 595, Australia

More information

16.410/413 Principles of Autonomy and Decision Making

16.410/413 Principles of Autonomy and Decision Making 6.4/43 Principles of Autonomy and Decision Making Lecture 8: (Mixed-Integer) Linear Programming for Vehicle Routing and Motion Planning Emilio Frazzoli Aeronautics and Astronautics Massachusetts Institute

More information

Institute of Operating Systems and Computer Networks Algorithms Group. Network Algorithms. Tutorial 3: Shortest paths and other stuff

Institute of Operating Systems and Computer Networks Algorithms Group. Network Algorithms. Tutorial 3: Shortest paths and other stuff Institute of Operating Systems and Computer Networks Algorithms Group Network Algorithms Tutorial 3: Shortest paths and other stuff Christian Rieck Shortest paths: Dijkstra s algorithm 2 Dijkstra s algorithm

More information

Genetic Theory of Cubic Graphs

Genetic Theory of Cubic Graphs Hamiltonian Cycle, Traveling Salesman and Related Optimization Problems Workshop, 2012 Joint work with: Vladimir Ejov, Jerzy Filar, Michael Haythorpe Earlier works containing ideas that can be seen as

More information

VIII. NP-completeness

VIII. 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 information

Unit 1A: Computational Complexity

Unit 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 information

Data Structures in Java

Data 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 information

NP-Complete Problems. More reductions

NP-Complete Problems. More reductions NP-Complete Problems More reductions Definitions P: problems that can be solved in polynomial time (typically in n, size of input) on a deterministic Turing machine Any normal computer simulates a DTM

More information

Week 8. 1 LP is easy: the Ellipsoid Method

Week 8. 1 LP is easy: the Ellipsoid Method Week 8 1 LP is easy: the Ellipsoid Method In 1979 Khachyan proved that LP is solvable in polynomial time by a method of shrinking ellipsoids. The running time is polynomial in the number of variables n,

More information

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

- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs LP-Duality ( Approximation Algorithms by V. Vazirani, Chapter 12) - Well-characterized problems, min-max relations, approximate certificates - LP problems in the standard form, primal and dual linear programs

More information

Algorithms and Complexity theory

Algorithms 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 information

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

Algorithms 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 information

Discrete planning (an introduction)

Discrete planning (an introduction) Sistemi Intelligenti Corso di Laurea in Informatica, A.A. 2017-2018 Università degli Studi di Milano Discrete planning (an introduction) Nicola Basilico Dipartimento di Informatica Via Comelico 39/41-20135

More information

4/12/2011. Chapter 8. NP and Computational Intractability. Directed Hamiltonian Cycle. Traveling Salesman Problem. Directed Hamiltonian Cycle

4/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 information

Optimisation and Operations Research

Optimisation and Operations Research Optimisation and Operations Research Lecture 22: Linear Programming Revisited Matthew Roughan http://www.maths.adelaide.edu.au/matthew.roughan/ Lecture_notes/OORII/ School

More information

The P versus NP Problem. Ker-I Ko. Stony Brook, New York

The P versus NP Problem. Ker-I Ko. Stony Brook, New York The P versus NP Problem Ker-I Ko Stony Brook, New York ? P = NP One of the seven Millenium Problems The youngest one A folklore question? Has hundreds of equivalent forms Informal Definitions P : Computational

More information

Section Notes 9. Midterm 2 Review. Applied Math / Engineering Sciences 121. Week of December 3, 2018

Section Notes 9. Midterm 2 Review. Applied Math / Engineering Sciences 121. Week of December 3, 2018 Section Notes 9 Midterm 2 Review Applied Math / Engineering Sciences 121 Week of December 3, 2018 The following list of topics is an overview of the material that was covered in the lectures and sections

More information

NP-Completeness. Until now we have been designing algorithms for specific problems

NP-Completeness. Until now we have been designing algorithms for specific problems NP-Completeness 1 Introduction Until now we have been designing algorithms for specific problems We have seen running times O(log n), O(n), O(n log n), O(n 2 ), O(n 3 )... We have also discussed lower

More information

CSC Linear Programming and Combinatorial Optimization Lecture 10: Semidefinite Programming

CSC Linear Programming and Combinatorial Optimization Lecture 10: Semidefinite Programming CSC2411 - Linear Programming and Combinatorial Optimization Lecture 10: Semidefinite Programming Notes taken by Mike Jamieson March 28, 2005 Summary: In this lecture, we introduce semidefinite programming

More information

New Integer Programming Formulations of the Generalized Travelling Salesman Problem

New Integer Programming Formulations of the Generalized Travelling Salesman Problem American Journal of Applied Sciences 4 (11): 932-937, 2007 ISSN 1546-9239 2007 Science Publications New Integer Programming Formulations of the Generalized Travelling Salesman Problem Petrica C. Pop Department

More information

Partial Path Column Generation for the Vehicle Routing Problem with Time Windows

Partial Path Column Generation for the Vehicle Routing Problem with Time Windows Partial Path Column Generation for the Vehicle Routing Problem with Time Windows Bjørn Petersen & Mads Kehlet Jepsen } DIKU Department of Computer Science, University of Copenhagen Universitetsparken 1,

More information

CS Algorithms and Complexity

CS Algorithms and Complexity CS 50 - Algorithms and Complexity Linear Programming, the Simplex Method, and Hard Problems Sean Anderson 2/15/18 Portland State University Table of contents 1. The Simplex Method 2. The Graph Problem

More information

Hamiltonian Cycle. Hamiltonian Cycle

Hamiltonian 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 information

CSL 356: Analysis and Design of Algorithms. Ragesh Jaiswal CSE, IIT Delhi

CSL 356: Analysis and Design of Algorithms. Ragesh Jaiswal CSE, IIT Delhi CSL 356: Analysis and Design of Algorithms Ragesh Jaiswal CSE, IIT Delhi Computational Intractability NP and NP-completeness Computational Intractability: NP & NP-complete NP: A problem X is in NP if and

More information

MATHEMATICS FOR COMPUTER VISION WEEK 8 OPTIMISATION PART 2. Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year

MATHEMATICS FOR COMPUTER VISION WEEK 8 OPTIMISATION PART 2. Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year MATHEMATICS FOR COMPUTER VISION WEEK 8 OPTIMISATION PART 2 1 Dr Fabio Cuzzolin MSc in Computer Vision Oxford Brookes University Year 2013-14 OUTLINE OF WEEK 8 topics: quadratic optimisation, least squares,

More information

Approximation Algorithms

Approximation Algorithms Approximation Algorithms Chapter 26 Semidefinite Programming Zacharias Pitouras 1 Introduction LP place a good lower bound on OPT for NP-hard problems Are there other ways of doing this? Vector programs

More information

Robustness of policies in Constrained Markov Decision Processes

Robustness of policies in Constrained Markov Decision Processes 1 Robustness of policies in Constrained Markov Decision Processes Alexander Zadorojniy and Adam Shwartz, Senior Member, IEEE Abstract We consider the optimization of finite-state, finite-action Markov

More information

On Polynomial Cases of the Unichain Classification Problem for Markov Decision Processes

On Polynomial Cases of the Unichain Classification Problem for Markov Decision Processes On Polynomial Cases of the Unichain Classification Problem for Markov Decision Processes Eugene A. Feinberg Department of Applied Mathematics and Statistics State University of New York at Stony Brook

More information

Integer Programming Methods LNMB

Integer Programming Methods LNMB Integer Programming Methods LNMB 2017 2018 Dion Gijswijt homepage.tudelft.nl/64a8q/intpm/ Dion Gijswijt Intro IntPM 2017-2018 1 / 24 Organisation Webpage: homepage.tudelft.nl/64a8q/intpm/ Book: Integer

More information

Hamiltonian Cycle Problem, Markov Decision Processes and Graph Spectra

Hamiltonian Cycle Problem, Markov Decision Processes and Graph Spectra Hamiltonian Cycle Problem, Markov Decision Processes and Graph Spectra A dissertation submitted for the degree of Doctor of Philosophy (Mathematics) to the School of Mathematics and Statistics, Division

More information

MVE165/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 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 information

Algorithms, Lecture 3 on NP : Nondeterminis7c Polynomial Time

Algorithms, Lecture 3 on NP : Nondeterminis7c Polynomial Time Algorithms, Lecture 3 on NP : Nondeterminis7c Polynomial Time Last week: Defined Polynomial Time Reduc7ons: Problem X is poly 7me reducible to Y X P Y if can solve X using poly computa7on and a poly number

More information

8.5 Sequencing Problems

8.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 information

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size. 10 2.2. CLASSES OF COMPUTATIONAL COMPLEXITY An optimization problem is defined as a class of similar problems with different input parameters. Each individual case with fixed parameter values is called

More information

Lecture Note 1: Introduction to optimization. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 1: Introduction to optimization. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 1: Introduction to optimization Xiaoqun Zhang Shanghai Jiao Tong University Last updated: September 23, 2017 1.1 Introduction 1. Optimization is an important tool in daily life, business and

More information

Integer Linear Programming (ILP)

Integer 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 information

Dantzig s pivoting rule for shortest paths, deterministic MDPs, and minimum cost to time ratio cycles

Dantzig s pivoting rule for shortest paths, deterministic MDPs, and minimum cost to time ratio cycles Dantzig s pivoting rule for shortest paths, deterministic MDPs, and minimum cost to time ratio cycles Thomas Dueholm Hansen 1 Haim Kaplan Uri Zwick 1 Department of Management Science and Engineering, Stanford

More information

Correctness of Dijkstra s algorithm

Correctness of Dijkstra s algorithm Correctness of Dijkstra s algorithm Invariant: When vertex u is deleted from the priority queue, d[u] is the correct length of the shortest path from the source s to vertex u. Additionally, the value d[u]

More information

CS711008Z Algorithm Design and Analysis

CS711008Z Algorithm Design and Analysis CS711008Z Algorithm Design and Analysis Lecture 8 Linear programming: interior point method Dongbo Bu Institute of Computing Technology Chinese Academy of Sciences, Beijing, China 1 / 31 Outline Brief

More information

The traveling salesman problem

The 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 information

Welcome to... Problem Analysis and Complexity Theory , 3 VU

Welcome to... Problem Analysis and Complexity Theory , 3 VU Welcome to... Problem Analysis and Complexity Theory 716.054, 3 VU Birgit Vogtenhuber Institute for Software Technology email: bvogt@ist.tugraz.at office: Inffeldgasse 16B/II, room IC02044 slides: http://www.ist.tugraz.at/pact17.html

More information

Chapter 34: NP-Completeness

Chapter 34: NP-Completeness Graph Algorithms - Spring 2011 Set 17. Lecturer: Huilan Chang Reference: Cormen, Leiserson, Rivest, and Stein, Introduction to Algorithms, 2nd Edition, The MIT Press. Chapter 34: NP-Completeness 2. Polynomial-time

More information

Lecture 4: NP and computational intractability

Lecture 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 information

Resource Constrained Project Scheduling Linear and Integer Programming (1)

Resource 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 information

Reductions Of Undiscounted Markov Decision Processes and Stochastic Games To Discounted Ones. Jefferson Huang

Reductions Of Undiscounted Markov Decision Processes and Stochastic Games To Discounted Ones. Jefferson Huang Reductions Of Undiscounted Markov Decision Processes and Stochastic Games To Discounted Ones Jefferson Huang School of Operations Research and Information Engineering Cornell University November 16, 2016

More information

Edge Elimination for the Hamiltonian Cycle problem

Edge 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 information

Week Cuts, Branch & Bound, and Lagrangean Relaxation

Week 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 information

Analysis of Algorithms. Unit 5 - Intractable Problems

Analysis of Algorithms. Unit 5 - Intractable Problems Analysis of Algorithms Unit 5 - Intractable Problems 1 Intractable Problems Tractable Problems vs. Intractable Problems Polynomial Problems NP Problems NP Complete and NP Hard Problems 2 In this unit we

More information

Intro to Contemporary Math

Intro to Contemporary Math Intro to Contemporary Math Hamiltonian Circuits and Nearest Neighbor Algorithm Nicholas Nguyen nicholas.nguyen@uky.edu Department of Mathematics UK Agenda Hamiltonian Circuits and the Traveling Salesman

More information

Graph Theory and Optimization Computational Complexity (in brief)

Graph Theory and Optimization Computational Complexity (in brief) Graph Theory and Optimization Computational Complexity (in brief) Nicolas Nisse Inria, France Univ. Nice Sophia Antipolis, CNRS, I3S, UMR 7271, Sophia Antipolis, France September 2015 N. Nisse Graph Theory

More information

Math Models of OR: Traveling Salesman Problem

Math Models of OR: Traveling Salesman Problem Math Models of OR: Traveling Salesman Problem John E. Mitchell Department of Mathematical Sciences RPI, Troy, NY 12180 USA November 2018 Mitchell Traveling Salesman Problem 1 / 19 Outline 1 Examples 2

More information

NP Complete Problems. COMP 215 Lecture 20

NP Complete Problems. COMP 215 Lecture 20 NP Complete Problems COMP 215 Lecture 20 Complexity Theory Complexity theory is a research area unto itself. The central project is classifying problems as either tractable or intractable. Tractable Worst

More information

Optimization 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 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 information

Inderjit Dhillon The University of Texas at Austin

Inderjit Dhillon The University of Texas at Austin Inderjit Dhillon The University of Texas at Austin ( Universidad Carlos III de Madrid; 15 th June, 2012) (Based on joint work with J. Brickell, S. Sra, J. Tropp) Introduction 2 / 29 Notion of distance

More information

Polynomial-Time Reductions

Polynomial-Time Reductions Reductions 1 Polynomial-Time Reductions Classify Problems According to Computational Requirements Q. Which problems will we be able to solve in practice? A working definition. [von Neumann 1953, Godel

More information

Distributed Optimization. Song Chong EE, KAIST

Distributed Optimization. Song Chong EE, KAIST Distributed Optimization Song Chong EE, KAIST songchong@kaist.edu Dynamic Programming for Path Planning A path-planning problem consists of a weighted directed graph with a set of n nodes N, directed links

More information

Section #2: Linear and Integer Programming

Section #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 information

minimize x subject to (x 2)(x 4) u,

minimize x subject to (x 2)(x 4) u, Math 6366/6367: Optimization and Variational Methods Sample Preliminary Exam Questions 1. Suppose that f : [, L] R is a C 2 -function with f () on (, L) and that you have explicit formulae for

More information

Introduction to Algorithms

Introduction to Algorithms Introduction to Algorithms 6.046J/18.401J/SMA5503 Lecture 18 Prof. Erik Demaine Negative-weight cycles Recall: If a graph G = (V, E) contains a negativeweight cycle, then some shortest paths may not exist.

More information

MCMC Simulated Annealing Exercises.

MCMC Simulated Annealing Exercises. Aula 10. Simulated Annealing. 0 MCMC Simulated Annealing Exercises. Anatoli Iambartsev IME-USP Aula 10. Simulated Annealing. 1 [Wiki] Salesman problem. The travelling salesman problem (TSP), or, in recent

More information

ABHELSINKI UNIVERSITY OF TECHNOLOGY

ABHELSINKI UNIVERSITY OF TECHNOLOGY Approximation Algorithms Seminar 1 Set Cover, Steiner Tree and TSP Siert Wieringa siert.wieringa@tkk.fi Approximation Algorithms Seminar 1 1/27 Contents Approximation algorithms for: Set Cover Steiner

More information

Module 8 Linear Programming. CS 886 Sequential Decision Making and Reinforcement Learning University of Waterloo

Module 8 Linear Programming. CS 886 Sequential Decision Making and Reinforcement Learning University of Waterloo Module 8 Linear Programming CS 886 Sequential Decision Making and Reinforcement Learning University of Waterloo Policy Optimization Value and policy iteration Iterative algorithms that implicitly solve

More information

July 18, Approximation Algorithms (Travelling Salesman Problem)

July 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 information

TRAVELING SALESMAN PROBLEM WITH TIME WINDOWS (TSPTW)

TRAVELING SALESMAN PROBLEM WITH TIME WINDOWS (TSPTW) TRAVELING SALESMAN PROBLEM WITH TIME WINDOWS (TSPTW) Aakash Anuj 10CS30043 Surya Prakash Verma 10AE30026 Yetesh Chaudhary 10CS30044 Supervisor: Prof. Jitesh Thakkar TSP Given a list of cities and the distances

More information

The Simplex and Policy Iteration Methods are Strongly Polynomial for the Markov Decision Problem with Fixed Discount

The Simplex and Policy Iteration Methods are Strongly Polynomial for the Markov Decision Problem with Fixed Discount The Simplex and Policy Iteration Methods are Strongly Polynomial for the Markov Decision Problem with Fixed Discount Yinyu Ye Department of Management Science and Engineering and Institute of Computational

More information

Warm-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. 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 information

CS/COE

CS/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 information

Exercises NP-completeness

Exercises 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 information

Mixed Integer Programming (MIP) for Causal Inference and Beyond

Mixed Integer Programming (MIP) for Causal Inference and Beyond Mixed Integer Programming (MIP) for Causal Inference and Beyond Juan Pablo Vielma Massachusetts Institute of Technology Columbia Business School New York, NY, October, 2016. Traveling Salesman Problem

More information

Part III: Traveling salesman problems

Part 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 information

Markov decision processes

Markov decision processes CS 2740 Knowledge representation Lecture 24 Markov decision processes Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Administrative announcements Final exam: Monday, December 8, 2008 In-class Only

More information

Semi-Infinite Relaxations for a Dynamic Knapsack Problem

Semi-Infinite Relaxations for a Dynamic Knapsack Problem Semi-Infinite Relaxations for a Dynamic Knapsack Problem Alejandro Toriello joint with Daniel Blado, Weihong Hu Stewart School of Industrial and Systems Engineering Georgia Institute of Technology MIT

More information

Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P

Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P Discrete Optimization 2010 Lecture 8 Lagrangian Relaxation / P, N P and co-n P Marc Uetz University of Twente m.uetz@utwente.nl Lecture 8: sheet 1 / 32 Marc Uetz Discrete Optimization Outline 1 Lagrangian

More information

21. Set cover and TSP

21. Set cover and TSP CS/ECE/ISyE 524 Introduction to Optimization Spring 2017 18 21. Set cover and TSP ˆ Set covering ˆ Cutting problems and column generation ˆ Traveling salesman problem Laurent Lessard (www.laurentlessard.com)

More information

AN ABSTRACT OF THE THESIS OF

AN ABSTRACT OF THE THESIS OF AN ABSTRACT OF THE THESIS OF Thai Duong for the degree of Master of Science in Computer Science presented on May 20, 2015. Title: Data Collection in Sensor Networks via the Novel Fast Markov Decision Process

More information

Markov Chains, Random Walks on Graphs, and the Laplacian

Markov Chains, Random Walks on Graphs, and the Laplacian Markov Chains, Random Walks on Graphs, and the Laplacian CMPSCI 791BB: Advanced ML Sridhar Mahadevan Random Walks! There is significant interest in the problem of random walks! Markov chain analysis! Computer

More information

Integer Programming ISE 418. Lecture 8. Dr. Ted Ralphs

Integer 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 information

III. Applications in convex optimization

III. Applications in convex optimization III. Applications in convex optimization nonsymmetric interior-point methods partial separability and decomposition partial separability first order methods interior-point methods Conic linear optimization

More information

Algorithms. Outline! Approximation Algorithms. The class APX. The intelligence behind the hardware. ! Based on

Algorithms. 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 information

Decentralized Control of Stochastic Systems

Decentralized Control of Stochastic Systems Decentralized Control of Stochastic Systems Sanjay Lall Stanford University CDC-ECC Workshop, December 11, 2005 2 S. Lall, Stanford 2005.12.11.02 Decentralized Control G 1 G 2 G 3 G 4 G 5 y 1 u 1 y 2 u

More information