An Algorithm for Computing the Convex Hull of a Set of Imprecise Line Segment Intersection

Similar documents
Computational Geometry TOPICS Preliminaries Point in a Polygon Polygon Construction Convex Hulls

CS 410/584, Algorithm Design & Analysis, Lecture Notes 8!

Largest Bounding Box, Smallest Diameter, and Related Problems on Imprecise Points

CS 410/584, Algorithm Design & Analysis, Lecture Notes 8

Computational Geometry for Imprecise Data

Basic Measures for Imprecise Point Sets in R d

Reachability on a region bounded by two attached squares

Computational geometry

Computational Geometry Algorithmische Geometrie

Computational Geometry. Algorithm Design (10) Computational Geometry. Convex Hull. Areas in Computational Geometry

LATEST TRENDS on APPLIED MATHEMATICS, SIMULATION, MODELLING

Computational Geometry. Geometry Cross Product Convex Hull Problem Sweep Line Algorithm

1/60. Geometric Algorithms. Lecture 1: Introduction. Convex Hulls

Triangle in a brick. Department of Geometry, Budapest University of Technology and Economics, H-1521 Budapest, Hungary. September 15, 2010

Chapter 3. Sukhwinder Singh

Preferred directions for resolving the non-uniqueness of Delaunay triangulations

ON THE EMPTY CONVEX PARTITION OF A FINITE SET IN THE PLANE**

Smallest Intersecting Circle for a Set of Polygons

High-Dimensional Computational Geometry. Jingbo Shang University of Illinois at Urbana-Champaign Mar 5, 2018

Largest and Smallest Convex Hulls for Imprecise Points

Lecture 13 Geometry and Computational Geometry

Computational Geometry

Crossing Families. Abstract

Generating Tool Paths for Free-Form Pocket Machining Using z-buffer-based Voronoi Diagrams

PERFECT FOLDING OF THE PLANE

Lecture 7: Computational Geometry

Voronoi Diagram and Convex Hull

Gardener s spline curve

Largest and Smallest Convex Hulls for Imprecise Points

MATH 113 Section 9.2: Symmetry Transformations

COMPUTATIONAL GEOMETRY AND COMPUTER GRAPHICS IN C++ BY MICHAEL J. LASZLO

Math 366 Lecture Notes Section 11.4 Geometry in Three Dimensions

GEOMETRY & INEQUALITIES. (1) State the Triangle Inequality. In addition, give an argument explaining why it should be true.

Other Voronoi/Delaunay Structures

Two Upper Bounds for the Erdős Szekeres Number with Conditions

Prof. Gill Barequet. Center for Graphics and Geometric Computing, Technion. Dept. of Computer Science The Technion Haifa, Israel

Computational Geometry

CS 532: 3D Computer Vision 14 th Set of Notes

A Saturated Packing of 37 Regular Tetrahedra

Lecture 3: Art Gallery Problems and Polygon Triangulation

Visibility: Finding the Staircase Kernel in Orthogonal Polygons

Euler s Theorem. Brett Chenoweth. February 26, 2013

Visibilty: Finding the Staircase Kernel in Orthogonal Polygons

COMPUTING CONSTRAINED DELAUNAY

Robot Motion Planning in Eight Directions

Connected Components of Underlying Graphs of Halving Lines

Surface Curvature Estimation for Edge Spinning Algorithm *

Flavor of Computational Geometry. Convex Hull in 2D. Shireen Y. Elhabian Aly A. Farag University of Louisville

Some Open Problems in Graph Theory and Computational Geometry

CSC Computer Graphics

Minimum-perimeter intersecting polygons

Basic tool: orientation tests

The Helly Number of the Prime-coordinate Point Set

GEOMETRY is the study of points in space

Collision Detection. Jane Li Assistant Professor Mechanical Engineering & Robotics Engineering

On the number of distinct directions of planes determined by n points in R 3

(Master Course) Mohammad Farshi Department of Computer Science, Yazd University. Yazd Univ. Computational Geometry.

EXTERNAL VISIBILITY. 1. Definitions and notation. The boundary and interior of

Fuzzy Voronoi Diagram

Stabbers of line segments in the plane

Fractal Tilings Based on Dissections of Polyhexes

Distance Trisector Curves in Regular Convex Distance Metrics

The Farthest Point Delaunay Triangulation Minimizes Angles

The equal tangents property

Lectures 19: The Gauss-Bonnet Theorem I. Table of contents

Rational Numbers: Graphing: The Coordinate Plane

G 6i try. On the Number of Minimal 1-Steiner Trees* Discrete Comput Geom 12:29-34 (1994)

The Polygon Exploration Problem II: The Angle Hull

Simultaneously flippable edges in triangulations

4. Conclusion. 5. Acknowledgment. 6. References

Course Guide (/8/teachers/teacher_course_guide.html) Print (/8/teachers/print_materials.html) LMS (/8

5. THE ISOPERIMETRIC PROBLEM

Definition 1 (Hand-shake model). A hand shake model is an incidence geometry for which every line has exactly two points.

3. Voronoi Diagrams. 3.1 Definitions & Basic Properties. Examples :

K-structure, Separating Chain, Gap Tree, and Layered DAG

Analog Clock. High School Math Alignment. Level 2 CSTA Alignment. Description

Triangles of Extremal Area or Perimeter in a Finite Planar Point Set

Grids Geometry Computational Geometry

Notes and Answers to Homework Exam 1, Geometric Algorithms, 2017

Geometry. Zachary Friggstad. Programming Club Meeting

Triangulation and Convex Hull. 8th November 2018

International Journal of Computational Geometry & Applications c World Scientific Publishing Company

Geometric Computations for Simulation

Lesson 1. Unit 2 Practice Problems. Problem 2. Problem 1. Solution 1, 4, 5. Solution. Problem 3

Voronoi Diagrams in the Plane. Chapter 5 of O Rourke text Chapter 7 and 9 of course text

Glossary of dictionary terms in the AP geometry units

The Ultimate Maths Vocabulary List

Algorithms and Data Structures

Lecture 12 March 4th

Geometry SOL Study Sheet. 1. Slope: ! y 1 x 2. m = y 2. ! x Midpoint: + x y 2 2. midpoint = ( x 1. , y Distance: (x 2 ) 2

COS 226 Lecture 15: Geometric algorithms. Warning: intuition may mislead (continued)

Archbold Area Schools Math Curriculum Map

CSC2420 Fall 2012: Algorithm Design, Analysis and Theory

Optimal Routing-Conscious Dynamic Placement for Reconfigurable Devices

MAT104: Fundamentals of Mathematics II Introductory Geometry Terminology Summary. Section 11-1: Basic Notions

Computational Geometry. Definition, Application Areas, and Course Overview

Three Dimensional Geometry. Linear Programming

Extensible Point Location Algorithm

Quickstart for Web and Tablet App

Euclidean Shortest Paths in Simple Cube Curves at a Glance

Transcription:

Int. J. Open Problems Compt. Math., Vol. 7, No. 3, September, 2014 ISSN 1998-6262; Copyright @ICSRS Publication, 2014 www.i-csrs.org An Algorithm for Computing the Convex Hull of a Set of Imprecise Line Segment Intersection Keivan Borna 1, Morteza Asadi Faculty of Mathematics and Computer Science, Kharazmi University, Tehran, Iran e-mail: borna@khu.ac.ir Faculty of Electrical and Computer Engineering, Islamic Azad University, Qazvin, Iran e-mail: info@asadiweb.ir Abstract Data imprecision constitutes an important gap between theory and practice in computational geometry. A lot of research about imprecision in computational geometry is directed at computing the convex hull of imprecise points rather than imprecise line segment intersection. In this paper we introduce an algorithm to construct the convex hull for a set of imprecise line segment intersection in time. Keywords: computational geometry, convex hull, imprecise line, imprecision, intersection. 2000 Mathematics Subject Classification: 68U05, 68T37. 1 Introduction The two most basic elements in the Euclidean geometry are points and lines. Data imprecision constitutes an important gap between theory and practice in computational geometry. Many authors including [1, 4] studied imprecise data. Concentrating on convex hull, in computational geometry, much emphasis is 1 Corresponding author

Keivan Borna et al. 56 based on the computation of the convex hull for imprecise points than convex hull for a set of imprecise line segment intersection. According to the survey conducted by many authors, the problem of finding convex hull for imprecise lines has not been studied until now and this represents the freshness of this topic. This paper is dedicated to this study and an optimal algorithm for constructing the convex hull for a set of imprecise line segment intersection is presented. The organization of this paper is as follows. In the next section related works and history of convex hull for imprecise points are studied. In Section 3, our proposed approach is presented. In Section 4 the time complexity of our algorithm is discussed. Finally Section 5 is devoted to proposing the open problem. 2 Related works Nagai and Tokura [2] computed the union and intersection of all possible convex hulls to obtain bounds on any possible solution. As imprecision regions, they used circles and convex polygons to obtain an O(nlogn) time algorithm. Boissonnat and Lazard [3] studied the problem of finding the shortest convex hull of bounded curvature that contains a set of points, and showed that this is equivalent to finding the shortest convex hull of a set of imprecise points modeled as circles that have the specified curvature. They also presented a polynomial time approximation algorithm. One of the latest papers about convex hull of imprecise points is due to Löffler [4]. In this paper, a relatively detailed work, the largest and smallest convex hull has been proposed for imprecise points. In this paper, various types of problems have been studied and many algorithms have been proposed to solve them. 3 Introducing our proposed method Before introducing our proposed method, we need to become familiar with some concepts of imprecise lines and how to model them. 3.1 Imprecise Line An imprecise line is a line for which we don t know exactly where it is, but we do have some information about it. To model it, the definition proposed by Löffler in [5] is used. According to this model, each imprecise line is modeled by a set of candidate lines, that is, a set L of lines in the plane. These lines must admit the following three features: 1. Limit angle: There should exist two lines l, m L, which have the smallest and largest slope. Let the angle between l and m be α. We call α, the limit angle of L. 2. Connectedness: If two lines can be transformed into each other by a continuous movement inside L, they are connected.

57 The Convex Hull of Imprecise Line Segment Intersection 3. Convexity: We will call a set of lines L convex if there exists a direction d such that no line l in L lies in direction d, and for any pair of lines l and m in L the followings hold: a. If l and m are parallel, then all other lines parallel to them and between them are also in L. b. If l and m intersect in a point p, then all other lines through p with a direction between l and m that can be rotated until they do not encounter d, are also in L. Figure 1 shows an imprecise line. Figure 1. An imprecise line with limit angle α. For the sake of simplicity, the set of candidate lines for imprecise lines (the set L of lines in ) is called bundle. If all of candidate lines are oriented, then bundles have orientation (Fig. 2-a). The union of all half planes to the right of lines in L is called (Fig. 2-b) and the intersection of all half planes to the right of lines in L is called (Fig. 2-c). 4 Main results Figure 2. Characteristic of oriented bundle L 4.1 Finding the convex hull of ordinary line segment intersection

Keivan Borna et al. 58 Convex hull can be defined for intersecting line segments and is the convex hull of intersection points of them. Computing the convex hull of ordinary (nonimprecise) line segments is simple and was done already by Mikhail Atallah, where he proposed an algorithm of time [6]. The algorithm is as follows: 1. Sort the lines in descending order in terms of slope. 2. Find the set of intersection points of consecutive lines in the ordering (including the last and first lines). 3. Compute the convex hull of these points using an algorithm such as Graham Scan. Fig. 3 shows an example computing the convex hull of some line segment intersection: Figure 3. Compute the convex hull of ordinary line segment intersection 4.2 Our algorithm for convex hull of imprecise line segment intersection To find the convex hull of intersection of imprecise line segments, first we must compute the border of bundle. Therefore, we have to calculate the upper and lower boundaries for each bundle and then use the algorithm of finding convex hull for ordinary line segment intersection. Thus the steps of our algorithm are as follows: 1. Find the boundary segments and for every bundle. 2. Sort the boundary segments and in descending slope order. 3. Find the intersection point of boundary segments and.

59 The Convex Hull of Imprecise Line Segment Intersection 4. Compute the convex hull of these points using an algorithm such as Graham Scan. Fig. 4 shows an example of our algorithm for finding the convex hull of imprecise line segment intersection. Figure 4. Computing the convex hull of seven imprecise lines 4.3 Time complexity of our proposed algorithm Our algorithm has four steps. The first step has linear complexity, because the algorithm in [5] to calculate the boundary segments and runs in linear time. The second step, sorting, takes time. Calculating the intersection of n line segments has Order, [6]. Finally, calculating the convex hull of n points with Graham Scan algorithm is of order. Thus the total time order is, which is optimal and acceptable. 4.4 Implementation For the implementation we used the C# programming language. To examine the intersection of two line segments, dointersect method is used, where the method orientation is called to determine whether two lines have the same direction and if so the third method onsegment checks whether the two lines coincide with each other. If two lines are crossed, the coordinates of the intersection point is calculated. Finally the convex hull of all intersection points is obtained using Graham Scan algorithm. Fig. 5 shows an execution of the algorithm.

Keivan Borna et al. 60 Figure 5. An execution of the proposed algorithm in C# 5 Open Problems In this paper we described an algorithm for calculating the convex hull of intersecting imprecise line segments. To model imprecise lines, we used a set of candidate lines called bundles. Then we calculated the convex hull of intersecting imprecise lines by finding the union and intersection of all right-side half planes of each bundle, sorting line segments on their slopes, and finally using the Graham Scan algorithm. As we mentioned the total time complexity of our approach is, where n is the number of input lines. This time order is optimal and reasonable. We also note that in the computation of convex hull of intersecting imprecise line segments, we used Graham Scan algorithm, now it makes perfect sense to apply some changes in the implementation and use other fast algorithms instead of famous Graham Scan. Several open problems are left to be considered in the future works. First how one can compute the convex hull of moving imprecise line segments? Is it possible to maintain this problem in time as well? Second how about the convex hull of other imprecise objects instead of line segments like rectangles, triangles or circles? For example for a rectangle, it could be modeled by four line segments and so if the number of rectangles is n, then the number of such line segments is 4n and one can continue the ideas introduced in this paper to obtain the convex hull of imprecise rectangles. Finally, we note that the same problem can be considered for objects in three dimensions where techniques of 3D-convex hull construction shall be applied.

61 The Convex Hull of Imprecise Line Segment Intersection ACKNOWLEDGEMENTS The authors would like to express their sincere gratitude to Dr. Farnaz Sheikhi for reading the first draft of this paper and giving very fruitful comments and useful feedbacks. References [1]. Davoodi, M., Khanteimouri, P., Shikhi, F., Mohades, A., Data Imprecision under -Geometry: Finding the Largest Axis-Aligned Bounding Box, EuroCG 11 Morschach, Switzerland, March 28-30 (2011), 135-138. [2]. Nagai, T., Tokura, N., Tight error bounds of geometric problems on convex objects with imprecise coordinates. In: Proceedings of the 4th Japanese Conference on Discrete and Computational Geometry. LNCS, vol. 2098, pp. 252 263. Springer, Berlin (2000). [3]. Guibas, L., Salesin, D., Stolfi, J., Constructing strongly convex approximate hulls with inaccurate primitives. Algorithmica 9 (1993), 534 560. [4]. Löffler, M., Van Kreveld, M., Largest and Smallest Convex Hulls for Imprecise Points. Algorithmica 56, 2 (2010), 235-269. [5]. Löffler, M., Van Kreveld, M., Geometry with Imprecise Lines. EuroCG 08 Nancy March 18-20, (2008), 133-136. [6]. Atallah, M., Computing the Convex Hull of Line Intersections. Computer Science Technical Reports, Purdue university, Report number: 84-499 (1984).