Next Article in Journal
An End-to-End Real-Time Lightweight Network for the Joint Segmentation of Optic Disc and Optic Cup on Fundus Images
Next Article in Special Issue
Enumerating Discrete Resonant Rossby/Drift Wave Triads and Their Application in Information Security
Previous Article in Journal
Tongue Segmentation and Color Classification Using Deep Convolutional Neural Networks
Previous Article in Special Issue
About AutoGraphiX Conjecture on Domination Number and Remoteness of Graphs
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Peeling Sequences

by
Adrian Dumitrescu
Algoresearch L.L.C., Milwaukee, WI 53217, USA
Mathematics 2022, 10(22), 4287; https://doi.org/10.3390/math10224287
Submission received: 13 October 2022 / Revised: 11 November 2022 / Accepted: 15 November 2022 / Published: 16 November 2022
(This article belongs to the Special Issue Research and Applications of Discrete Mathematics)

Abstract

:
Given an n-element point set in the plane, in how many ways can it be peeled off until no point remains? Only one extreme point can be removed at a time. The answer obviously depends on the point set. If the points are in convex position, there are exactly n ! ways, which is the maximum number of ways for n points. But what is the minimum number?
MSC:
52C05; 52C45; 11B83

1. Introduction

Given n points on a line, in how many ways can they be removed, when we are only allowed to remove from one end? We can remove from either end until one point remains, when we have exactly one choice. Consequently, there are two choices at each step except the last one, thus 2 n 1 options.
A set of points in the plane is said to be in a general position if no three of them are collinear. Let P be a set of n points in the plane in general position, labeled by 1 , 2 , , n . Consider removing points one by one until no point remains, under the provision that exactly one extreme point (i.e., a convex hull vertex) is removed in the current step. If the points are in a convex position, there are exactly n ! options, which is clearly the maximum number of ways to remove n points. What is the minimum number?
A peeling sequence for P is any permutation of [ n ] that can be obtained by writing the labels of the points removed one by one. We are interested in the minimum number of such permutations that can be obtained, over all point sets of size n.
Definitions. 
Given an n-element point set P in a general position of the plane, let g ( P ) count the number of peeling sequences for P and g ( n ) denote the minimum of g ( P ) over all n-element point sets P in the general position. It should be clear that g ( n ) is an increasing function of n.
Our results. 
To begin, we determine the values of g ( · ) for the first few small values of n. Trivially, we have g ( 1 ) = 1 , and g ( 2 ) = 2 .
Proposition 1.
The following exact values can be observed.
g ( 3 ) = 6 , g ( 4 ) = 18 , g ( 5 ) = 60 , g ( 6 ) = 180 .
We then establish the following bounds (all logarithms are in base 2).
Theorem 1.
Every n-element point set in a general position admits Ω ( 3 n ) peeling sequences. On the other hand, there are sets with only 2 O ( n log log n ) peeling sequences. Equivalently, the following inequalities are in effect: g ( n ) = Ω ( 3 n ) and g ( n ) = 2 O ( n log log n ) .
It will be evident from the proof of Theorem 1 that g ( n ) is a multiple of 6 for every n 3 and that g ( n ) satisfies the following recurrence:
g ( n ) 3 · g ( n 1 ) , for n 3 .
Let h ( n ) = log g ( n ) . Then, obviously, h ( n ) = Ω ( n ) and h ( n ) = O ( n log log n ) .
Related work. 
The concept of “peeling” a convex hull has been associated to dynamic convex hull algorithms and convex hull determination [1]. For a planar point set P, the convex layers of P are the convex polygons obtained by iterating the following procedure: computing its convex hull and removing its vertices from P [2]. The process of the peeling a point set has been shown to be very useful for obtaining robust estimators in statistics [2,3]. A common estimator of a (unidimensional) sample is its arithmetic mean; however, this estimator can be severely affected by outliers. A method that performs better is is to discard the highest and lowest α -fraction of the data and take the mean of the remainder. This is the α -trimmed mean. The median is the special case α = 1 / 2 . The higher-dimensional analog of trimming, called “peeling” by Tukey, consists of successively removing extreme points of the convex hull of the data until a certain fixed fraction of the points remains.
A quadratic algorithm for peeling (i.e., for convex layer decomposition) was initially proposed by Shamos [4]. A faster algorithm, running in O ( n log 2 n ) , is due to Overmars and Van Leeuwen [1]. Finally, an optimal algorithm, running in O ( n log n ) time, was obtained by Chazelle [2]. In the area of dynamic convex hull algorithms, the latest developments are due to Chan [5]. Computing the convex layers and studying their structure in a random setting have been studied by Dalal [6]. Har-Peled and Lidický [7] have studied the number of steps needed for peeling the integer grid G n with n points (with, say, n = k 2 ); note that G n is not in a general position, but the peeling process can be executed on any point set.
It should be noted that while in the discussion above, all the extreme points in a layer are removed in parallel (i.e., at the same time), in our study—of the function g ( n ) —the extreme points are removed sequentially one by one.

2. Preliminaries

Observation 1.
Let P be any n-element point set. Then, g ( P ) n ! .
Proof. 
By definition, any peeling sequence for P is a permutation of [ n ] , and the upper bound is implied. □
Proof of Proposition 1. 
Let h denote the size of the convex hull of P. The case n = 3 is clear: there are 3 ! = 6 permutations, and each of them is a valid peeling sequence. The remaining cases are illustrated in Figure 1.
Let now n = 4 . If the points are in convex position, there are 4 ! = 24 permutations. If the points are not in convex position, let 4 be the interior point. Then, any permutation that starts with 4 is invalid; however, all remaining 4 ! 3 ! = 18 permutations are valid.
Let now n = 5 . If h 4 , there are at least 4 × g ( 4 ) = 72 permutations. The case h = 3 yields the smallest number, 24 + 18 + 18 = 60 , of permutations; indeed, removing one of the extreme points yields a convex quadrilateral, while the other two removals can result in a triangle with a point inside.
Finally, let n = 6 . If h 4 , there are at least 4 × g ( 5 ) = 240 permutations. The case h = 3 yields the smallest number: 3 × g ( 5 ) = 3 × 60 = 180 permutations; indeed, removing each of the extreme points may yield the minimizer for n = 5 discussed above. □

3. Proof of Theorem 1

Lower bound. 
Let P be any n-element point set in general position, where n 3 . By the assumption, conv ( P ) has at least three extreme vertices, and the removal of each yields a set of n 1 points in a general position. Any two peeling sequences resulting from the removal of two different extreme vertices are clearly different. As such, g ( · ) satisfies the recurrence g ( n ) 3 · g ( n 1 ) . Consequently, g ( n ) = Ω ( 3 n ) . By Proposition 1, we also have g ( n ) 180 · 3 n 6 for every n 6 .
Upper bound. 
Here, we prove the upper bound in Theorem 1. Our construction is remotely reminiscent of that in [8] in that it uses long, slightly concave chains of points (vs. long slightly concave chains of unit disks). The long chains of disks in [8] have the effect that the construction is hard to dismantle, and a significant segment of the initial moves are in a certain sense wasted. Similarly, here, the long concave chains of points are very restrictive with respect to the points that can be removed in an initial phase of the removal procedure.
Consider a regular k-gon K with vertex set P 0 . Replace each side of the k-gon by a circular arc of very large radius R centered in the exterior of K that is incident to the two endpoints of the side. Distribute evenly a 1 new points on each arc, where a is a positive integer. Denote by P the resulting set of n = k + k ( a 1 ) = k a points; see Figure 2. Note that conv ( P ) has exactly k extreme points. The key property of the constructed point set P with respect to repeated deletion of points is that this situation persists (apart from a factor of 2) as long as about n / k points remain. This is made precise in the following.
Lemma 1.
Let P P be a subset of points that remains after removing | P | | P | points from P (i.e., peeling P according to the rules for that many steps). If | P | a + 2 , then conv ( P ) has at most 2 k extreme points.
Proof. 
Let C be any fixed chain in P and let C = C P . Observe that C consists of a contiguous subchain of the points in C. It suffices to show that C contributes at most two extreme points in P . This is clear if | C | 2 , so assume that | C | 3 . Each concave chain has initially ( a 1 ) + 2 = a + 1 points. Since | P | a + 2 , P contains points from at least two different initial concave chains, by construction (recall that R is very large), conv ( P ) has an extreme vertex that does not belong to C and exactly two extreme vertices in C C . In either case, C contributes at most two extreme points in P , as claimed. □
We return to the upper bound proof. It remains to estimate the number of resulting peeling sequences and set a suitable value for k to minimize the bound. Divide any peeling sequence (of length n) into two subsequences: a prefix subsequence of length n n / k 1 and a suffix subsequence of length n / k + 1 . By Lemma 1, the number of prefix subsequences is bounded from above by ( 2 k ) n n / k 1 . By Observation 1, the number of suffix subsequences corresponding to a fixed prefix subsequence is bounded from above by ( n / k + 1 ) ! . Consequently, the total number of peeling sequences is bounded from above by the product rule:
g ( n ) ( 2 k ) n n / k 1 · n k + 1 ! .
Using a trivial estimate for the factorial log n ! n log n n / 2 and taking logarithms yields
h ( n ) n n k 1 log ( 2 k ) + log n k + 1 ! n n k log ( 2 k ) + n k log n k .
Setting
k = log n log log n
balances the two terms and further yields h ( n ) = O ( n log log n ) . This completes the proof of Theorem 1. □
A second proof of the upper bound. 
Here we give another construction with a shorter proof. For every k 3 , Erdős and Szekeres [9] constructed sets with n = 2 k 1 points in general position containing no subset of size k + 1 in convex position. Let P be such a set. That is, the largest convex subset of P has at most k points. This implies that once we start peeling P, the convex hull of the current set has never more than k vertices, and so the number of choices at each step is at most k. Consequently, the total number of peeling sequences is bounded from above by k n (this bound can be somewhat reduced due to fewer choices at the end of the process). Taking logarithms as before yields h ( n ) n log k = O ( n log log n ) .

4. Concluding Remarks

Observe that the convex layer decomposition of a point set P (mentioned in Section 1) yields a set of peeling sequences naturally derived from it: remove the points from one layer, one by one, before moving to the next layer. Indeed, this is so, since any point of the layer under removal is still extreme at that step. In general, if there are m layers and their sizes are h 1 , h 2 , , h m counting from outside, where h 1 , , h m 1 3 , h m 1 , and i = 1 m h i = n , then there are h 1 ! h 2 ! h m ! peeling sequences given by the convex layer decomposition.
Apart from the case of points in convex position, the set of peeling sequences corresponding to layer by layer removal of the points is a strict subset of the set of peeling sequences of P. It is worth noting that this subset can be much smaller than the whole set. For example, consider a point set with n / 3 layers, where each layer is a triangle (and so the point set is the vertex set of n / 3 nested triangles). Then there are 6 n / 3 = 1.817 n peeling sequences given by the convex layer decomposition, whereas the total number of peeling sequences is Ω ( 3 n ) by Theorem 1.
Our estimates on the growth rate of g ( n ) are rather loose; indeed, even after taking logarithms of the lower and upper bounds, there is still a gap. According to the bounds we have obtained, it is perfectly possible that g ( n ) grows faster than any exponential:
Problem 1.
Is there a constant a > 1 such that g ( n ) = O ( a n ) ?
Another interesting problem is to improve the trivial lower bound in Theorem 1 (say, increase the base by 1):
Problem 2.
Prove (or disprove) that g ( n ) = Ω ( 4 n ) .

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Overmars, M.H.; van Leeuwen, J. Maintenance of configurations in the plane. J. Comput. Syst. Sci. 1981, 23, 166–204. [Google Scholar] [CrossRef] [Green Version]
  2. Chazelle, B. On the convex layers of a planar set. IEEE Trans. Inf. Theory 1985, 31, 509–517. [Google Scholar] [CrossRef] [Green Version]
  3. Shamos, M.I. Geometry and statistics: Problems at the interface. In Recent Results and New Directions in Algorithms and Complexity; Traub, J.F., Ed.; Academic Press: New York, NY, USA, 1976; pp. 251–280. [Google Scholar]
  4. Shamos, M.I. Problems in Computational Geometry. Ph.D. Thesis, Yale University, New Haven, CT, USA, 1978. [Google Scholar]
  5. Chan, T.M. Dynamic planar convex hull operations in near-logarithmic amortized time. J. ACM 2001, 48, 1–12. [Google Scholar] [CrossRef]
  6. Dalal, K. Counting the onion. Random Struct. Algorithms 2004, 24, 155–165. [Google Scholar] [CrossRef]
  7. Har-Peled, S.; Lidický, B. Peeling the grid. Siam J. Discret. Math. 2013, 27, 650–655. [Google Scholar] [CrossRef] [Green Version]
  8. Bereg, S.; Dumitrescu, A.; Pach, J. Sliding disks in the plane. Int. J. Comput. Geom. Appl. 2008, 15, 373–387. [Google Scholar] [CrossRef]
  9. Erdős, P.; Szekeres, G. On some extremum problems in elementary geometry. Ann. Univ. Sci. Bp. 1960, 3–4, 53–62. [Google Scholar]
Figure 1. Illustration for n = 4 , 5 , 6 .
Figure 1. Illustration for n = 4 , 5 , 6 .
Mathematics 10 04287 g001
Figure 2. Illustration for k = 5 ; the figure is not to scale. Left: the point set resembles a slightly deflated pentagon. Right: after peeling off some of the points.
Figure 2. Illustration for k = 5 ; the figure is not to scale. Left: the point set resembles a slightly deflated pentagon. Right: after peeling off some of the points.
Mathematics 10 04287 g002
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Dumitrescu, A. Peeling Sequences. Mathematics 2022, 10, 4287. https://doi.org/10.3390/math10224287

AMA Style

Dumitrescu A. Peeling Sequences. Mathematics. 2022; 10(22):4287. https://doi.org/10.3390/math10224287

Chicago/Turabian Style

Dumitrescu, Adrian. 2022. "Peeling Sequences" Mathematics 10, no. 22: 4287. https://doi.org/10.3390/math10224287

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop