MERL { A MITSUBISHI ELECTRIC RESEARCH LABORATORY. Empirical Testing of Algorithms for. Variable-Sized Label Placement.

Similar documents
A Viewer for PostScript Documents

Design Gallery Browsers Based on 2D and 3D Graph Drawing (Demo)

MIC 99. III Metaheuristics International Conference. PUC-Rio - Catholic University of Rio de Janeiro. Angra dos Reis, Brazil.

Fast Point-Feature Label Placement Algorithm for Real Time Screen Maps

A General Purpose Queue Architecture for an ATM Switch

A Recursive Coalescing Method for Bisecting Graphs

1. First printing, TR95-6, February Revised April 1996.

Dynamic Window Decoding for LDPC Convolutional Codes in Low-Latency Optical Communications

A Heuristic Method for Generating 2D CSG Trees from Bitmaps

Exhaustive Generation and Visual Browsing for Radiation Patterns of Linear Array Antennas

EVALUATION OF EDCF MECHANISM FOR QoS IN IEEE WIRELESS NETWORKS

QueryLines: Approximate Query for Visual Browsing

TABU SEARCH HEURISTIC FOR POINT-FEATURE CARTOGRAPHIC LABEL PLACEMENT

Fast Region-of-Interest Transcoding for JPEG 2000 Images

A Hybrid Recursive Multi-Way Number Partitioning Algorithm

Figure 1: The three positions allowed for a label. A rectilinear map consists of n disjoint horizontal and vertical line segments. We want to give eac

GSAT and Local Consistency

Calculating the Distance Map for Binary Sampled Data

Under My Finger: Human Factors in Pushing and Rotating Documents Across the Table

Efficient MPEG-2 to H.264/AVC Intra Transcoding in Transform-domain

Oleg V. Verner RogerL.Wainwright Dale A. Schoenefeld. The University oftulsa. 600 South College Avenue. Abstract

Depth Estimation for View Synthesis in Multiview Video Coding

Kalev Kask and Rina Dechter. Department of Information and Computer Science. University of California, Irvine, CA

HEURISTIC OPTIMIZATION USING COMPUTER SIMULATION: A STUDY OF STAFFING LEVELS IN A PHARMACEUTICAL MANUFACTURING LABORATORY

Disparity Search Range Estimation: Enforcing Temporal Consistency

Connection Admission Control for Hard Real-Time Communication in ATM Networks

space. We will apply the idea of enforcing local consistency to GSAT with the hope that its performance can

A Stochastic Search Technique for Graph Bisection

Progress in Image Analysis and Processing III, pp , World Scientic, Singapore, AUTOMATIC INTERPRETATION OF FLOOR PLANS USING

Modified Vertex Support Algorithm: A New approach for approximation of Minimum vertex cover

CS227: Assignment 1 Report

Some Applications of Graph Bandwidth to Constraint Satisfaction Problems

Andrew Davenport and Edward Tsang. fdaveat,edwardgessex.ac.uk. mostly soluble problems and regions of overconstrained, mostly insoluble problems as

An Initial Seed Selection Algorithm for K-means Clustering of Georeferenced Data to Improve

Evolving Variable-Ordering Heuristics for Constrained Optimisation

Department of. Computer Science. Remapping Subpartitions of. Hyperspace Using Iterative. Genetic Search. Keith Mathias and Darrell Whitley

4 INFORMED SEARCH AND EXPLORATION. 4.1 Heuristic Search Strategies

View Synthesis for Multiview Video Compression

Sandeep Kharidhi and WenSui Liu ChoicePoint Precision Marketing

HKUST Theoretical Computer Science Center Research Report HKUST-TCSC-99-06

2WKHUZLVH 6HOHFWFRQIOLFW& LL 6HOHFWFRQVWUDLQW7& WKDWZRXOGOHDGWRUHSDLU& LLL &UHDWHDFKRLFHSRLQWFRUUHVSRQGLQJD GLVMXQFWLRQRI7& DQGLWVQHJDWLRQ*RWR

09/28/2015. Problem Rearrange the elements in an array so that they appear in reverse order.

Richard E. Korf. June 27, Abstract. divide them into two subsets, so that the sum of the numbers in

Comp Online Algorithms

Optimal Sequential Multi-Way Number Partitioning

Supplementary text S6 Comparison studies on simulated data

Toward Spatial Queries for Spatial Surveillance Tasks

Independent Sets in Hypergraphs with. Applications to Routing Via Fixed Paths. y.

The task of inductive learning from examples is to nd an approximate definition

Multi-Camera Calibration, Object Tracking and Query Generation

DocuBits and Containers: Providing e-document Micro-Mobility in a Walk-up Interactive Tabletop Environment

New Heuristic and Interactive Approaches to 2D Rectangular Strip Packing

Predicting Lattice reduction

Fast Image Registration via Joint Gradient Maximization: Application to Multi-Modal Data

View Synthesis Prediction for Rate-Overhead Reduction in FTV

Local Search (Greedy Descent): Maintain an assignment of a value to each variable. Repeat:

Acyclic Edge Colorings of Graphs

Constructive floorplanning with a yield objective

Extensions of H.264/AVC for Multiview Video Compression

5. Computational Geometry, Benchmarks and Algorithms for Rectangular and Irregular Packing. 6. Meta-heuristic Algorithms and Rectangular Packing

3.6.2 Generating admissible heuristics from relaxed problems

Sensor Placement Tool for Rapid Development of Video Sensor Layouts

Comparing Implementations of Optimal Binary Search Trees

Learning local evidence for shading and reflectance

From Approximate to Optimal Solutions: A Case Study of Number Partitioning

Danielle Feinberg. Pixar Animation Studios. CSG models. 1. Their method uses a greedy heuristic

II (Sorting and) Order Statistics

PARAMETER OPTIMIZATION FOR AUTOMATED SIGNAL ANALYSIS FOR CONDITION MONITORING OF AIRCRAFT SYSTEMS. Mike Gerdes 1, Dieter Scholz 1

On the Max Coloring Problem

Probabilistic Learning Approaches for Indexing and Retrieval with the. TREC-2 Collection

BEYOND MAXIMUM INDEPENDENT SET: AN EXTENDED MODEL FOR POINT-FEATURE LABEL PLACEMENT

Power Functions and Their Use In Selecting Distance Functions for. Document Degradation Model Validation. 600 Mountain Avenue, Room 2C-322

CREATING THE DISTRIBUTION ANALYSIS

INTRODUCTION TO HEURISTIC SEARCH

Stochastic Approximation Algorithms for Number Partitioning

FDDI-M: A SCHEME TO DOUBLE FDDI S ABILITY OF SUPPORTING SYNCHRONOUS TRAFFIC

Vertex Cover Approximations on Random Graphs.

Submitted for TAU97 Abstract Many attempts have been made to combine some form of retiming with combinational

Variable Neighborhood Search for Solving the Balanced Location Problem

Rowena Cole and Luigi Barone. Department of Computer Science, The University of Western Australia, Western Australia, 6907

Volumetric Operations with Surface Margins

Proxy Caching for Video on Demand Systems in Multicasting Networks

CS229 Final Project: k-means Algorithm

An Interactive System for Drawing Graphs

An Evaluation of Information Retrieval Accuracy. with Simulated OCR Output. K. Taghva z, and J. Borsack z. University of Massachusetts, Amherst

An Empirical Study of Per-Instance Algorithm Scheduling

Genetic Programming for Data Classification: Partitioning the Search Space

Why AC-3 is Almost Always Better than AC-4 for Establishing Arc Consistency in CSPs*

Storage Allocation Based on Client Preferences

Constructing Hidden Units using Examples and Queries

Digital Audio and Video in Industrial Systems

The Generalized Weapon Target Assignment Problem

Multi-path Transport of FGS Video

Some graph theory applications. communications networks

Process Allocation for Load Distribution in Fault-Tolerant. Jong Kim*, Heejo Lee*, and Sunggu Lee** *Dept. of Computer Science and Engineering

Multi-Way Number Partitioning

The Steerable Pyramid: A Flexible Architecture for Multi-Scale Derivative Computation

OPTIMIZING THE TOTAL COMPLETION TIME IN PROCESS PLANNING USING THE RANDOM SIMULATION ALGORITHM

Egemen Tanin, Tahsin M. Kurc, Cevdet Aykanat, Bulent Ozguc. Abstract. Direct Volume Rendering (DVR) is a powerful technique for

A Genetic Algorithm Applied to Graph Problems Involving Subsets of Vertices

Transcription:

MERL { A MITSUBISHI ELECTRIC RESEARCH LABORATORY http://www.merl.com Empirical Testing of Algorithms for Variable-Sized Placement Jon Christensen Painted Word, Inc. Joe Marks MERL Stacy Friedman Oracle Corporation Stuart Shieber Harvard University TR-97-13 October 1997 Abstract We report an empirical comparision of dierent heuristic techniques for variablesized point-feature label placement. This work may not be copied or reproduced in whole or in part for any commercial purpose. Permission to copy in whole or in part without payment of fee is granted for nonprot educational and research purposes provided that all such whole or partial copies include the following: a notice that such copying is by permission of Mitsubishi Electric Information Technology Center America; an acknowledgment of the authors and individual contributions to the work; and all applicable portions of the copyright notice. Copying, reproduction, or republishing for any other purpose shall require a license with payment of fee to Mitsubishi Electric Information Technology Center America. All rights reserved. Copyright c Mitsubishi Electric Information Technology Center America, 1997 201 Broadway, Cambridge, Massachusetts 02139

1. First printing, TR97-13, October 1997. Also in Proc. of the 13th Annual Symposium on Computational Geometry, Nice, France, June 1997, pp. 415-417.

1 (a) (b) (c) Figure 1: Examples of xed- and variable-size label placement. A map of three points (a) shows the four potential label positions for each point and depicting an especially poor choice of label positions. Viewed as a xed-size label placement problem, the points can be labeled well as in (b). Viewed as a variable-size label placement problem, the size of the labels may be increased by some 40 percent and still labeled without overlap (c) by moving the label of the upper left point. The development of methods for placing labels on map features is a central problem in automated cartography. A well-studied problem of this sort is the point-feature label placement (PFLP) problem: Given a set of points and a set of candidate label positions adjacent to each point nd the choice of label position for each point that minimizes the total number of label-label and label-point overlaps. Sample labelings of this sort are depicted in Figure 1. This NP-hard problem has been attacked by a number of researchers. Thorough empirical testing has shown that a heuristic algorithm based on simulated annealing () outperforms all previously published practical algorithms for this problem [1]. Recently, Wagner and Wol [3] have explored a variant of the PFLP problem. In their problem, which we call variable-sized point-feature label placement (VPFLP), the goal is to nd the largest label scale at which the set of points can be labeled with zero overlaps; that

2 is, only perfect labelings are allowed, but the size of the labels is allowed to vary uniformly. (See Figure 1.) Wagner and Wol present an algorithm for the specic case of VPFLP in which each point has four candidate label positions (4-VPFLP). Wagner and Wol do not compare their own algorithm for this problem with those of other researchers. In this note, we report on empirical testing of Wagner and Wol's algorithm (which we will refer to as ) for 4-VPFLP with the algorithm. We nd that performs essentially identically to, though it is slower. However, the generality of the algorithm (explored, for instance, by Edmondson et al. [2]) means that, unlike, can be applied to a far broader range of VPFLP variants. Finally, we address the question of whether the clever preprocessing method used in might be advantageously applied to PFLP by using it as a preprocessing step for, and show that it provides no advantage. The algorithm for VPFLP works by performing a simple binary search over scales; at each candidate scale, a test is performed to determine whether a perfect labeling exists. To perform this admissibility test, any algorithm for PFLP may be used, but Wagner and Wol take advantage of the fact that nding a good but imperfect solution to this embedded PFLP problem is proigate; they propose instead a very fast heuristic that determines quickly whether a perfect labeling exists. Their admissibility test is particularized to the case where each point has only four candidate label positions. It works by (i) a preprocessing phase to eliminate candidate positions that cannot occur in a perfect labeling; (ii) a greedy heuristic phase to eliminate all but two candidate positions for each point, thereby reducing the problem to 2-PFLP; (iii) a solution phase to solve the 2-PFLP problem by reduction to 2-T and solution of the 2-T problem. Wagner and Wol claim that their admissibility test performs well in solving 4-VPFLP problems. We tested the algorithm for 4-VPFLP in comparison with binary search using other admissibility tests, in particular: the variant mentioned above, a random-descent method () also proposed by Christensen et al. [1], and a baseline random-placement method (). Figure 2 shows the result of these tests on a set of problems at a wide range of densities generated randomly according to the methods of Christensen et al. [1]. density, varying along the x axis, is given by the number of labels of size 30 7 on a map of dimensions 792 612, ranging from 100 to 1000 in multiples of 100. At each label density, for each method tested, runs were made on 50 maps. Scale is presented on the y axis by the computed maximal scale relative to a benchmark \space-lling scale", the scale at which the area of all the labels just equals the area of the map. This serves as a very weak upper bound on the optimal scale. The box plot shows the mean value over the 50 runs with a crosshair. The top middle and bottom lines in the box mark the 75th, 50th (median), and 25th percentiles, and the top and bottom extensions mark the 90th and 10th percentiles. The graph shows the clear and unsurprising superiority of and over the two alternatives; the repeated use of an admissibility test in each VPFLP problem means that small improvements in a PFLP algorithm are leveraged into large improvements in a VPFLP algorithm. Figure 3 graphs the average ratio of label size to label size at dierent densities. The ratio stays extremely close to 1, with neither algorithm clearly superior. The dierences are not signicant according to a one-tail paired two-sample t-test over all 500 maps tested (t =.42, df=499, P =.337). Similar signicance levels obtain for tests at each label density.

3 Scale Computed by Method Relative to Upper Bound for Density 0.3 0.25 0.2 0.15 0.1 0.05 0 100 200 300 400 500 600 700 800 900 1000 Density and Admissibility Test Method Figure 2: Box plot of four admissibility test methods used to solve 4-VPFLP at various densities. 1.05 Ratio / 1 0.95 100 200 300 400 500 600 700 800 900 1000 Density Figure 3: Mean and standard error of ratios of -computed scale to -computed scale for 4-VPFLP.

4 On average, the -based VPFLP algorithm required about three times more time than the -based one. This is not surprising, as the admissibility test is designed to fail quickly for PFLP problems with no perfect labeling, whereas must run through an entire annealing process before it can test whether the nal labeling generated is perfect. Thus, for the 4-VPFLP problem, is preferable to. On the other hand, the fact that the performance is essentially identical to that of means that is as good a method for determining admissibility as for the fourcandidate variant. We can thus expect that for other versions of VPFLP for which cannot be applied, such as versions with more than four candidate positions per point, a priori preferences among positions, or with linear and area features, will perform extremely well. As extensions beyond the capability of are usual in cartographic applications, the ecacy of for variable-sized label placement problems is welcome news. The preprocessing phase of is conservative in the sense that if a perfect labeling of the original set of candidate positions exists, then one will still exist after the preprocessing phase has eliminated its candidates. A natural question is whether the preprocessing phase might therefore be used to eliminate some potential candidate positions as a preprocess to so that might nd better solutions to the PFLP problem. Of course, if the preprocess reports that no perfect labeling exists (as it well might), we need to decide what to do. Figure 4 shows the result of a test of algorithms using the preprocess to augment. (The methodology is identical to that used by Christensen et al. [1] so that the results are directly comparable.) The line marked \ halt on fail detect" stops eliminating candidate positions as soon as the preprocess concludes that no perfect labeling exists. The line marked \, thorough" continues to eliminate candidate positions thereafter. This more aggressive use of the preprocess when used to prune candidate positions for the algorithm is clearly inferior. The former method, though it does not perform better than, performs only very slightly worse, and provides some slight speedup. Thus, the use of the preprocessing does not seem to provide a signicant advantage to. In summary, the empirical study reported on here demonstrates that performs as well as the 2-T heuristic on 4-VPFLP though it is considerably slower. Use of the preprocessing heuristic does not seem to benet. The generality of makes it the method of choice for variable-sized label placement problems beyond 4-VPFLP. Acknowledgements This paper is based upon work supported in part by the National Science Foundation under Grant Number IRI-9350192 and by a gift from MERL A Mitsubishi Electric Research Laboratory. References [1] Jon Christensen, Joe Marks, and Stuart M. Shieber. An empirical study of algorithms for point feature label placement. ACM Transactions on Graphics, 14(3):203{232, July 1995.

5 [2] Shawn Edmondson, Jon Christensen, Joe Marks, and Stuart M. Shieber. A general cartographic labeling algorithm. Cartographica, 1997. To appear. [3] Frank Wagner and Alexander Wol. A practical map labeling algorithm. Journal of Computational Geometry. To appear.

6 1 0.9 0.8 Percent ed Without Overlap 0.7 0.6 0.5 0.4 0.3 0.2, halt on fail detect, thorough Greedy 0.1 0 100 200 300 400 500 600 700 800 900 1000 Density Figure 4: Performance of various algorithms on PFLP problems at various densities, including with and without preprocessing.