Computing Crossing-Free Configurations with Minimum Bottleneck

Similar documents
Monotone Paths in Geometric Triangulations

Theorem 2.9: nearest addition algorithm

1 The Traveling Salesperson Problem (TSP)

Polynomial Time Approximation Schemes for the Euclidean Traveling Salesman Problem

Approximation Algorithms

Algorithm Design and Analysis

COMPUTING MAXMIN EDGE LENGTH TRIANGULATIONS

Introduction to Approximation Algorithms

Algorithms for Euclidean TSP

Traveling Salesman Problem (TSP) Input: undirected graph G=(V,E), c: E R + Goal: find a tour (Hamiltonian cycle) of minimum cost

MVE165/MMG630, Applied Optimization Lecture 8 Integer linear programming algorithms. Ann-Brith Strömberg

val(y, I) α (9.0.2) α (9.0.3)

CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 14: Combinatorial Problems as Linear Programs I. Instructor: Shaddin Dughmi

Obstacle-Aware Longest-Path Routing with Parallel MILP Solvers

Notes for Lecture 24

Recent PTAS Algorithms on the Euclidean TSP

Topic: Local Search: Max-Cut, Facility Location Date: 2/13/2007

Integer Programming Theory

An Experimental Evaluation of the Best-of-Many Christofides Algorithm for the Traveling Salesman Problem

CS 580: Algorithm Design and Analysis. Jeremiah Blocki Purdue University Spring 2018

Approximation Algorithms

Fundamentals of Integer Programming

Approximation Algorithms

Bottleneck Steiner Tree with Bounded Number of Steiner Vertices

Approximation Algorithms

Unit 8: Coping with NP-Completeness. Complexity classes Reducibility and NP-completeness proofs Coping with NP-complete problems. Y.-W.

NP-Hardness. We start by defining types of problem, and then move on to defining the polynomial-time reductions.

MVE165/MMG631 Linear and integer optimization with applications Lecture 9 Discrete optimization: theory and algorithms

Methods and Models for Combinatorial Optimization Exact methods for the Traveling Salesman Problem

Foundations of Computing

ACO Comprehensive Exam October 12 and 13, Computability, Complexity and Algorithms

On Convex Polygons in Cartesian Products

P vs. NP. Simpsons: Treehouse of Horror VI

The Subtour LP for the Traveling Salesman Problem

Lecture 8: The Traveling Salesman Problem

Improved Results on Geometric Hitting Set Problems

2. Modeling AEA 2018/2019. Based on Algorithm Engineering: Bridging the Gap Between Algorithm Theory and Practice - ch. 2

Conflict-free Covering

Best known solution time is Ω(V!) Check every permutation of vertices to see if there is a graph edge between adjacent vertices

The Traveling Salesperson Problem with Forbidden Neighborhoods on Regular 3D Grids

APPROXIMATION ALGORITHMS FOR GEOMETRIC PROBLEMS

11. APPROXIMATION ALGORITHMS

Module 6 NP-Complete Problems and Heuristics

Strongly Connected Spanning Subgraph for Almost Symmetric Networks

A Note on the Separation of Subtour Elimination Constraints in Asymmetric Routing Problems

A Computational Study of Conflict Graphs and Aggressive Cut Separation in Integer Programming

6 Randomized rounding of semidefinite programs

/ Approximation Algorithms Lecturer: Michael Dinitz Topic: Linear Programming Date: 2/24/15 Scribe: Runze Tang

PTAS for geometric hitting set problems via Local Search

Discrete Optimization. Lecture Notes 2

Decision Problems. Observation: Many polynomial algorithms. Questions: Can we solve all problems in polynomial time? Answer: No, absolutely not.

The Traveling Salesman Problem on Grids with Forbidden Neighborhoods

Lecture Notes: Euclidean Traveling Salesman Problem

CSE 417 Branch & Bound (pt 4) Branch & Bound

Kurt Mehlhorn, MPI für Informatik. Curve and Surface Reconstruction p.1/25

Combinatorial Optimization

February 19, Integer programming. Outline. Problem formulation. Branch-andbound

CMSC 451: Lecture 22 Approximation Algorithms: Vertex Cover and TSP Tuesday, Dec 5, 2017

1 date: September 15, 1998 file: mitche1

1 Introduction and Results

LOCAL SEARCH FOR THE MINIMUM FUNDAMENTAL CYCLE BASIS PROBLEM

Introduction to Approximation Algorithms

Lecture 24: More Reductions (1997) Steven Skiena. skiena

Improving the Held and Karp Approach with Constraint Programming

Combinatorial Gems. Po-Shen Loh. June 2009

Lower Bounds for Insertion Methods for TSP. Yossi Azar. Abstract. optimal tour. The lower bound holds even in the Euclidean Plane.

COMP Analysis of Algorithms & Data Structures

Minimizing the Stabbing Number of Matchings, Trees, and Triangulations

Combinatorial Optimization - Lecture 14 - TSP EPFL

Minimum Weight Constrained Forest Problems. Problem Definition

An O(log n/ log log n)-approximation Algorithm for the Asymmetric Traveling Salesman Problem

V1.0: Seth Gilbert, V1.1: Steven Halim August 30, Abstract. d(e), and we assume that the distance function is non-negative (i.e., d(x, y) 0).

Acyclic Edge Colorings of Graphs

Copyright 2000, Kevin Wayne 1

Report on article The Travelling Salesman Problem: A Linear Programming Formulation

An Optimal Algorithm for the Euclidean Bottleneck Full Steiner Tree Problem

Sándor P. Fekete Winfried Hellmann Michael Hemmer Arne Schmidt Julian Troegel

Embedding Formulations, Complexity and Representability for Unions of Convex Sets

3 No-Wait Job Shops with Variable Processing Times

Integer Programming as Projection

Technische Universität München, Zentrum Mathematik Lehrstuhl für Angewandte Geometrie und Diskrete Mathematik. Combinatorial Optimization (MA 4502)

Euclidean Shortest Paths in Simple Cube Curves at a Glance

11. APPROXIMATION ALGORITHMS

Lecture 14: Linear Programming II

On Minimum Weight Pseudo-Triangulations

Steiner Trees and Forests

The Algorithm Design Manual

Figurative Tours and Braids

On the Shortest Separating Cycle

Module 6 P, NP, NP-Complete Problems and Approximation Algorithms

DM515 Spring 2011 Weekly Note 7

Constructing arbitrarily large graphs with a specified number of Hamiltonian cycles

Using SAS/OR to Optimize Scheduling and Routing of Service Vehicles

A Reduction of Conway s Thrackle Conjecture

Motivation for Heuristics

Questions? You are given the complete graph of Facebook. What questions would you ask? (What questions could we hope to answer?)

Approximation Algorithms

Basic Approximation algorithms

An exact algorithm for max-cut in sparse graphs

Complete Local Search with Memory

Transcription:

Computing Crossing-Free Configurations with Minimum Bottleneck Sándor P. Fekete 1 and Phillip Keldenich 1 1 Department of Computer Science, TU Braunschweig, Germany {s.fekete,p.keldenich}@tu-bs.de Abstract We consider problems of finding non-crossing bottleneck structures for a given planar point set: For a given a set of vertices V, the problem Minimum Bottleneck Polygon (MBP) is to find a simple polygon P with vertex set V whose longest edge is as short as possible; the problem Minimum Bottleneck Simple Matching (MBSM) is to find a crossing-free matching of V whose longest edge is as short as possible. Both problems are known to be NP-complete and neither admits a PTAS. We develop exact methods that can solve benchmark instances (newly generated and from the classic TSPLIB library) with up to 1,5 points for MBP and up to 2, points for MBSM to provable optimality. 1 Introduction Finding a simple polygon with a given set V of vertices in the plane is one of the basic problems of computational geometry. If we want to minimize the overall length, this is is equivalent to the classic Traveling Salesman Problem (TSP), as a shortest tour is always non-crossing. However, if the objective is to minimize the length of the longest edge, this is no longer the case, see Fig. 1. This problem Minimum Bottleneck Polygon (MBP) is NP-complete and unless P=NP, it cannot be approximated within a factor better than 3, as it is NP-complete to decide whether a hexagonal grid graph has a Hamiltonian cycle (HC) of unit edges (see Arkin et al. [5]). We are not aware of any constant-factor approximation algorithms for the MBP. A similarly basic geometric optimization problem is to find a matching for a given vertex set. When minimizing the total length of all edges, an optimal solution must also be non-crossing; this allows it to use standard matching techniques, subject to the (purely theoretical) issue of computing the sum of a set of square roots. Matching techniques can also be used to compute a Minimum Bottleneck Matching (MBM) in polynomial time. However, a solution to MBM does not have to be non-crossing, as shown in Fig. 1. In fact, it was shown by Abu-Affash et al. [2] that this problem Minimum Bottleneck Simple Matching (MBSM) is NP-complete and does not allow a PTAS. They also provide a 2 1 6.325-approximation algorithm and state without proof that they can reduce this factor to (1 + 2) 5 5.398. In this paper, we develop methods for computing provably optimal solutions for benchmark instances up to 2, points. Beyond illustrating the practical solvability of both problems, this will provide ground truth for testing potential (improved) approximation methods. Related work. There is a huge body of related work; due to limited space, we only mention a small subset. This work was partially supported by the DFG Research Unit "Controlling Concurrent Change", funding number FOR 18, project FE47/17-2, "Conflict Resolution and Optimization". 34th European Workshop on Computational Geometry, Berlin, Germany, March 21 23, 218. This is an extended abstract of a presentation given at EuroCG 18. It has been made public for the benefit of the community and should be considered a preprint rather than a formally reviewed paper. Thus, this work is expected to appear eventually in more final form at a conference with formal proceedings and/or in a journal.

23:2 Computing Crossing-Free Configurations with Minimum Bottleneck Figure 1 Left: A minimum bottleneck matching and a crossing-free minimum bottleneck matching. Right: A minimum bottleneck tour and a minimum bottleneck polygon. The minimum bottleneck TSP was first introduced by Gilmore and Gomory [9]. For metric instances, there is a 2-approximation algorithm implied by Fleischner s theorem [8, 12] which states that the square of every two-connected graph is Hamiltonian; for general metric instances, this factor is best possible. Hochbaum and Shmoys [1] also prove a factor of 2 within a framework providing approximation algorithms for several bottleneck problems. The problem of finding a longest simple polygon for a given vertex set was considered by Alon et al. [3]; they conjecture this problem to be NP-hard, but this is still open. See Dumitrescu and Tóth [6] for improved approximation factors. 2 Minimum Bottleneck Polygonalization 2.1 Modeling We start with a basic formulation NMBP(V ) of Minimum Bottleneck Polygon as a Mixed Integer Program, where x pq is a Boolean variable encoding whether pq is an edge of the polygon and B encodes the bottleneck of the solution. For two points p, q V, let χ(pq) be the set of line segments crossing pq. min B s. t. p V : q p x pq = 2 (1) p, q V, rs χ(pq) : x pq + x rs 1 (2) S V : x pq 2 (3) p S,q V \S p, q V : pq 2 x pq B (4) x pq {, 1} Degree constraints (1) ensure two incident edges for each point, while crossing constraints (2) exclude crossing edges. The subtour constraints (3) enforce a connected solution. Finally, the bottleneck constraints (4) enforce the maximum edge length B. This naïve formulation is only practical for small point sets. Firstly, it is well known that using an auxiliary variable B to encode a min max-type objective often induces weak LP relaxations and thus leads to a suboptimally large search tree. Moreover, the total number of crossing constraints corresponds to the number of convex quadruples in V, which is known to be Ω(n 4 ) (see [11, 14]), so using all these constraints at once becomes prohibitively expensive. In the following, we present a formulation of the MBP as a sequence BMBP τ (V ) of IPs addressing these issues; this resembles the approach used in [7] for determining the threshold value for a triangulation whose shortest edge is as long as possible. For a threshold value τ, BMBP τ (V ) is integer feasible iff V has a polygon with bottleneck at most τ; we exclude all edges longer than τ. As before, we use degree constraints (5), subtour constraints (7) and

S. P. Fekete and P. Keldenich 23:3 crossing constraints (6). Thus, a minimum bottleneck polygon can be found with binary search over possible values of τ. The optimal bottleneck is the length of an edge; therefore, this is a discrete set of possible values. min p,q V, pq 2 τ pq 2 x pq s. t. p V : q V, pq 2 τ x pq = 2 (5) p, q V, pq 2 τ, rs χ(pq) : x pq + x rs 1 (6) S V : x pq 2 (7) p S,q / S, pq 2 τ x pq {, 1} In our implementation of this formulation, only violated crossing and subtour constraints are added iteratively by generating appropriate cutting planes. This results in only small subsets of these large families actually being used. This is aided by our use of the objective function. Instead of directly minimizing the bottleneck, we minimize the sum of all edge lengths. Due to the triangle inequality, most avoidable edge crossings never occur in intermediate (fractional and integral) solutions. Moreover, we do not have to solve BMBP τ (V ) to optimality; we can abort the search as soon as the first integer feasible solution is found. 2.2 Computational Results We implemented NMBP(V ) and BMBP τ (V ) in C++, using IBM ILOG CPLEX 12.6.2 as our IP solver. All our experiments ran on a workstation running Linux 4.4 on an Intel Core i7-67k CPU at 4 GHz clock frequency with 64 GiB of RAM. In order to efficiently construct BMBP τ (V ), we used an implementation of kd-trees provided by CGAL [1] to enumerate all points within distance τ of a query point. Moreover, violated crossing constraints are detected using CGAL s sweep line implementation. To compare the performance of NMBP and BMBP, we ran both NMBP and BMBP on a set of small instances. Using NMBP, most instances with more than 5 points cannot be solved within 5 seconds, while BMBP solves these instances in less than half a second. Thus, we only evaluate BMBP in the remainder of the section. Fig. 2 shows the results of running BMBP on randomly generated point sets with a modest time limit of 1 minutes. We also ran BMBP on all geometric instances from the classic TSPLIB [13] with fewer than 2,5 points. Within a time limit of one hour, we were able to solve most of them to optimality; see Fig. 3. 3 Minimum Bottleneck Matching 3.1 Modeling By modifying the right-hand side of the degree constraints (1) and (5) to 1 and removing the subtour constraints (3) and (7), we obtain a formulation of the crossing-free minimum bottleneck matching problem as naïve MILP NMBM(V ) and as sequence of IPs BMBM τ (V ). In order to improve its performance, we generate blossom constraints S V, S odd: x pq 1, (8) p S,q / S, pq 2 τ E u r o C G 1 8

23:4 Computing Crossing-Free Configurations with Minimum Bottleneck 6 5 4 3 2 1 Memory [MiB] 5 1, 1,5 1, 8, 6, 4, 2, Memory [MiB] Solved [%] 1 8 6 4 2 5 1, 1,5 Figure 2 Left: Average running time and peak memory usage for BMBP, run with a time limit of 6 s on point sets generated uniformly at random. Right: Percentage of instances solved within the time limit. 3,6 3, 2, 1, 2 4 6 8 1, 1,2 1,4 1,6 1,8 2, 2,2 2,4 Figure 3 Time required by BMBP to solve the TSPLIB instances; computation was aborted after one hour. as cutting planes. We identify violated blossom inequalities by searching for odd components in the support graph of a fractional solution. In order to further restrict the search space for the binary search, we implemented a minimum bottleneck matching algorithm to serve as a lower bound and a crossing removal heuristic to produce an initial crossing-free solution as an upper bound; see Section 3.2. 3.2 Crossing Repair Heuristic A straightforward way to heuristically turn a crossing matching into a non-crossing one is to use a sequence of local 2-OPT exchanges, replacing a crossing pair of edges pq, rs by pr, sq or ps, qr. Any 2-OPT step decreases the sum of edge lengths, so this process must terminate with a non-crossing matching. However, this heuristic does not seem to perform well with respect to the bottleneck. An alternative is a simple but effective heuristic for converting a crossing matching M C with bottleneck B into a non-crossing matching M NC, while trying to keep the bottleneck edge as short as possible. We use a standard sweep line algorithm to detect crossings. If there is no more crossing, we are done. Otherwise, we pick an arbitrary crossing pq, rs. Using a kd-tree, we perform a simultaneous incremental nearest-neighbor search, starting from p, q, r and s, constructing a set of close points N that contains up to K points, for some constant K; we use K = 5 in our experiments. Whenever a new point is discovered, it is added to N, together with its matching partner in M C. Once N contains K points, we compute the bounding box of N and extend it by B in every direction. We use a range query

S. P. Fekete and P. Keldenich 23:5 6 6 1 1.1 1, 1, 2, 3, 2, 1, 1 Memory Time [MiB] [s] 2 Memory [MiB] Solved [%] 1 8 6 4 2 Solved in time Solved by heuristic 1, 1, 2, 3, Figure 4 Left: Average running time and peak memory usage for BMBM, run with a time limit of 6 s on point sets generated uniformly at random. Right: Percentage of instances solved within the time limit, and percentage of instances solved to optimality using the crossing-removal heuristic. 7,2 6, 4, 2, 2, 4, 6, 8, 1, 12, 14, 16, 18, 2, Figure 5 Time required by BMBM to solve the TSBLIB instances; the time limit was two hours. to find all points inside the extended bounding box; this set of points consists of our internal points N and external points T. For all external points, we find the corresponding matching edge in M C ; this gives us a set of edges E T. We use BMBM τ (N) with binary search on τ to find a minimum bottleneck crossing-free matching on N; however, in order to avoid introducing new crossings, we prohibit using any edge that crosses an edge of E T, unless this edge is part of M C. In M C, we replace the matching edges corresponding to points in N with the edges from the resulting matching. In this way, the crossing pq, rs disappears and no new crossings can appear. We iterate this procedure until there are no more crossings; the number of crossings is reduced by at least one in each iteration, thus the heuristic terminates with a crossing-free matching M NC. In certain situations, this heuristic can fail, because a crossing-free matching cannot be found due to the forbidden edges. In this case, we resort to performing 2-OPT steps to remove some crossings before continuing to use the original heuristic. 3.3 Computational Results We implemented both NMBM and BMBM and evaluated them under the same circumstances as outlined in Section 2.2. Similar to the situation for polygons, the naïve NMBM cannot compete with BMBM, so we give only give computational results BMBM. We were able to solve almost all TSPLIB instances with up to 2, points within a time limit of two hours (see Fig. 5). For point sets chosen uniformly at random from the unit square, we were able to solve all generated instances with up to 6, points and most instances with up to 1, points within ten minutes (see Fig. 4). In many instances, applying our crossing removal heuristic to a minimum bottleneck matching yields a crossing-free solution with the same bottleneck (see Fig. 4), thus resulting in a provably optimal solution. For all randomly generated instances, the minimum bottleneck E u r o C G 1 8

23:6 Computing Crossing-Free Configurations with Minimum Bottleneck was achievable in a crossing-free manner; on these instances, our crossing repair heuristic was off by a factor of at most 2.215 (this factor was 1.11 on average with median 1.24). 4 Future Work We presented exact approaches for both the MBP and the MBSM. Many interesting theoretical and practical problems remain that are left for future work. The most interesting theoretical problem is to develop a constant-factor approximation algorithm for MBP. In our experiments, we found that for large point sets generated uniformly at random, a minimum bottleneck matching can always be achieved with a non-crossing solution. Is there an analytic basis for this observation? For general point sets, it may be interesting to explore the properties of the matching polytope with added crossing constraints. On the practical side, the quadratic number of edge variables is the biggest impediment for solving larger instances. For the classic TSP, this has been dealt with by using column generation and related methods [4]. For MBP, there are potentially many additional constraints that could be used for cutting plane generation. Doing this in an efficient manner requires rewriting large parts of the integer programming solver. For MBSM, more sophisticated algorithms may be able to identify more (helpful) blossom constraints. References 1 The Computational Geometry Algorithms Library. http://www.cgal.org. 2 A. K. Abu-Affash, P. Carmi, M. J. Katz, and Y. Trabelsi. Bottleneck non-crossing matching in the plane. Computational Geometry, 47(3):447 457, 214. 3 N. Alon, S. Rajagopalan, and S. Suri. Long non-crossing configurations in the plane. Fundam. Inform., 22(4):385 394, 1995. 4 D. L. Applegate, R. E. Bixby, V. Chvatal, and W. J. Cook. The Traveling Salesman Problem: A computational study. Princeton university press, 211. 5 E. M. Arkin, S. P. Fekete, K. Islam, H. Meijer, J. S. Mitchell, Y. Núñez-Rodríguez, V. Polishchuk, D. Rappaport, and H. Xiao. Not being (super)thin or solid is hard: A study of grid Hamiltonicity. Computational Geometry, 42(6 7):582 65, 29. 6 A. Dumitrescu and C. D. Tóth. Long non-crossing configurations in the plane. Discrete & Computational Geometry, 44(4):727 752, 21. 7 S. P. Fekete, W. Hellmann, M. Hemmer, A. Schmidt, and J. Troegel. Computing MaxMin edge length triangulations. In Proc. 17th Worksh. Alg. Eng. Exp. (ALENEX), pages 55 69, 215. Full version to appear in Journal of Computational Geometry. 8 H. Fleischner. The square of every two-connected graph is Hamiltonian. Journal of Combinatorial Theory, Series B, 16(1):29 34, 1974. 9 P. C. Gilmore and R. E. Gomory. Sequencing a one state-variable machine: A solvable case of the Traveling Salesman Problem. Operations Research, 12(5):655 679, 1964. 1 D. S. Hochbaum and D. Shmoys. A unified approach to approximation algorithms for bottleneck problems. Journal of the ACM, 33:533 55, 7 1986. 11 L. Lovász, K. Vesztergombi, U. Wagner, and E. Welzl. Convex quadrilaterals and k-sets. In Contemporary Mathematics Series, 342, AMS 24, pages 139 148, 24. 12 R. G. Parker and R. L. Rardin. Guaranteed performance heuristics for the bottleneck Travelling Salesman Problem. Operations Research Letters, 2(6):269 272, 1984. 13 G. Reinelt. TSPlib A Traveling Salesman Problem library. ORSA J. Computing, 3(4), 1991. 14 E. R. Scheinerman and H. S. Wilf. The rectilinear crossing number of a complete graph and Sylvester s four point problem of geometric probability. The American Mathematical Monthly, 11(1):939 943, 1994.