Abstract 1 Introduction 2 Preliminaries 3 Approximating convex hulls via orthogonal queries 4 Approximating convex hulls via halfplane queries References

Approximating Convex Hulls via Range Queries

Thomas Schibler ORCID University of California, Santa Barbara, CA, USA    Jie Xue ORCID New York University Shanghai, China    Jiumu Zhu ORCID New York University Shanghai, China
Abstract

Recently, motivated by the rapid increase of the data size in various applications, Monemizadeh [APPROX’23] and Driemel, Monemizadeh, Oh, Staals, and Woodruff [SoCG’25] studied geometric problems in the setting where the only access to the input point set is via querying a range-search oracle. Algorithms in this setting are evaluated on two criteria: (i) the number of queries to the oracle and (ii) the error of the output. In this paper, we continue this line of research and investigate one of the most fundamental geometric problems in the oracle setting, i.e., the convex hull problem.

Let P be an unknown set of points in [0,1]d equipped with a range-emptiness oracle. Via querying the oracle, the algorithm is supposed to output a convex polygon C[0,1]d as an estimation of the convex hull 𝒞(P) of P. The error of the output is defined as the volume of the symmetric difference C𝒞(P)=(C\𝒞(P))(𝒞(P)\C). We prove tight and near-tight tradeoffs between the number of queries and the error of the output for different variants of the problem, depending on the type of the range-emptiness queries and whether the queries are non-adaptive or adaptive.

  • Orthogonal emptiness queries in d-dimensional space:
    We show that the minimum error a deterministic algorithm can achieve with q queries is Θ(q1/d) if the queries are non-adaptive, and Θ(q1/(d1)) if the queries are adaptive. In particular, in 2D, the bounds are Θ(1/q) and Θ(1/q) for non-adaptive and adaptive queries, respectively.

  • Halfplane emptiness queries in 2D:
    We show that the minimum error a deterministic algorithm can achieve with q queries is Θ(1/q) if the queries are non-adaptive, and Θ~(1/q2) if the queries are adaptive. Here Θ~() hides logarithmic factors.

Keywords and phrases:
convex hull, range searching
Copyright and License:
[Uncaptioned image] © Thomas Schibler, Jie Xue, and Jiumu Zhu; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Computational geometry
; Theory of computation Design and analysis of algorithms
Related Version:
Full Version: https://arxiv.org/abs/2603.20943
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

Classic algorithms are designed to compute solutions to a problem instance by processing the entire input dataset. These algorithms can suffer two potential drawbacks. The first drawback concerns efficiency. As all of the input data has to be received and examined, the time complexity of such algorithms (even the most efficient ones) is at least linear in the input size. However, due to the rapidly growing size of the datasets involved in real-world applications nowadays, linear running time is already not satisfactory in many scenarios. The second drawback regards data privacy. For security reasons, sometimes the users would like to keep their data private and therefore cannot directly provide the exact dataset to the algorithm. Instead, they can only provide partial and implicit information of the dataset and ask the algorithm to give useful results based on the information provided. In this situation, the classic algorithms no longer work due to lack of full information of the dataset.

Motivated by removing these drawbacks, researchers have studied algorithms in the oracle model. In this model, the algorithm does not have direct access to the input dataset. Instead, a provided oracle built on the dataset can answer certain queries about the dataset. The algorithm is required to compute a good solution by performing queries to the oracle. Algorithms in this setting are usually evaluated on two criteria: (i) the number of queries to the oracle and (ii) the error of the output.

For geometric problems, various types of oracles have been considered in the literature [14, 16, 15, 17, 22]. When the input dataset is a set P of points in a Euclidean space d, a natural type is the range-search oracle. A query to a range-search oracle is a range Q in the space d of a specific shape, and the oracle will return certain information about the points in PQ. For example, a range-counting oracle returns |PQ| [1, 12], a range-emptiness oracle returns whether PQ= or not [19, 26], a range-reporting oracle returns the set PQ itself [6, 23], etc. Range-search oracles have the following advantages. First, range search can usually be implemented very efficiently. As a fundamental topic in Computational Geometry, range search has been extensively studied over decades and many efficient data structures have been proposed for various range queries [4, 5, 9, 12, 13, 21]. Furthermore, most types of range search (except range reporting) do not reveal the exact data points inside the query range Q, and therefore data privacy is well guaranteed. Recently, Monemizadeh [22] and the authors of [17] studied multiple geometric problems with range-search oracles, following earlier work of Czumaj and Sohler [16] and the authors of [15]. Problems considered include facility location [22], clustering [16], Euclidean minimum spanning tree [15, 17], earth mover distance [17], etc. They show that for all these problems, one can obtain nontrivial approximation solutions via a small number of range-search queries.

In this paper, we continue this line of research and investigate one of the most fundamental geometric problems, the convex hull problem [7, 8, 10, 11, 24, 27], in the range-search oracle model. In the convex hull problem, the goal is to compute the convex hull of a set P of points in d, denoted by 𝒞(P), which by definition is the smallest convex body in d containing P. We study the problem with the simplest type of range-search oracles, i.e., range-emptiness oracles. We are interested in finding a convex body C as an approximation of 𝒞(P) via a small number of range-emptiness queries. To this end, we need a measure for the error of the approximation. The most natural measure one can use is the relative error C𝒞(P)/𝒞(P), where denotes the volume and C𝒞(P)=(C\𝒞(P))(𝒞(P)\C) is the symmetric difference between C and 𝒞(P). Unfortunately, one can easily see that it is impossible to approximate the convex hull with any bounded relative error no matter how many range-emptiness queries the algorithm performs111Even in 1, there is no way to check whether P only contains one point, in which case 𝒞(P)=0, or P contains at least two points, in which case 𝒞(P)>0, via range-emptiness queries.. Therefore, we shall instead consider the additive error C𝒞(P). Clearly, the additive error depends on the extent measure of P. So we need an extra normalization assumption: we require all points in P to lie in the unit hypercube [0,1]d. Below we formulate the problem to be studied.

Input: A (black-box) range-emptiness oracle 𝒪 on a set P of points in [0,1]d

Output: A convex body C that approximates 𝒞(P)

Regarding the above problem, a natural question concerns the tradeoff between the number of queries and the (additive) error of the output: if the algorithm is allowed to perform q queries to the oracle 𝒪, what is the minimum error it can achieve (in the worst case)? The answer to this question depends on the following two features of the queries.

  • Shape of the query ranges. Range queries with different shapes might behave very differently. The most commonly used queries are orthogonal queries [12], where the query ranges are axis-parallel rectangles/boxes. Besides these, well-studied range queries include halfplane/halfspace queries [2, 18], simplex queries [20], semi-algebraic queries [5, 26], etc.

  • Adaptivity of the queries. In the non-adaptive query model, the algorithm must make all its queries at once, and then make its estimation based on the batched answer. In the adaptive query model, the algorithm is allowed to make queries at any time and the oracle will provide the answer immediately. In particular, the next query can be made after seeing the answers of the previous queries.

As the main contribution of this paper, we prove tight and near-tight tradeoffs between the number of queries and the error of the output for Approximate Convex Hull with orthogonal emptiness queries in d for any fixed d and halfplane emptiness queries in 2, in both non-adaptive and adaptive query models.

  • Orthogonal queries. We show the minimum error a deterministic algorithm can achieve for Approximate Convex Hull in d with q orthogonal emptiness queries is Θ(q1/d) if the queries are non-adaptive and is Θ(q1/(d1)) if the queries are adaptive. In particular, in 2D, the bounds are Θ(1/q) and Θ(1/q) for non-adaptive and adaptive queries, respectively.

  • Halfplane queries. We show the minimum error a deterministic algorithm can achieve for Approximate Convex Hull in 2 with q halfplane emptiness queries is Θ(1/q) if the queries are non-adaptive and is Θ~(1/q2) if the queries are adaptive222The notation Θ~() hides factors logarithmic in q..

Table 1 summarizes the tradeoffs we prove in this paper. All of our algorithms are deterministic and have offline time complexity (outside the oracle) polynomial in q. Our lower bounds similarly hold for deterministic algorithms.

Table 1: Minimum error one can achieve for Approximate Convex Hull with q queries.
Query shape Space Query type Upper bound Lower bound Source
Orthogonal d Non-adaptive O(q1/d) Ω(q1/d) Theorems 2 and 8
Adaptive O(q1/(d1)) Ω(q1/(d1)) Theorems 12 and 13
Halfplane 2 Non-adaptive O(1/q) Ω(1/q) Theorems 17 and 22
Adaptive O~(1/q2) Ω(1/q2) Theorems 28 and 29

Related work.

Both convex hulls and range search have been extensively studied in the literature. See [3, 25] for surveys of these topics. Problems related to convex hulls have also been considered in oracle models prior to this paper. For example, the celebrated work of Chazelle, Liu, and Magen [14] considered the problem of approximating the volume of the convex hull in 2D and 3D via a sampling oracle, which can uniformly sample an input point. Czumaj and Sohler [16] studied the problem of testing convex position via range queries. Here the goal is to check whether one can remove an ε-fraction of the points from the input point set to make it in convex position. The oracle used in [16] is slightly stronger than range-emptiness oracles – it can report one point in the query range.

2 Preliminaries

Basic notations.

For a number n, we write [n]={1,,n}. For a convex body C in d, we denote by C its volume. The notation || is used with different meanings depending on the context. For a segment σ, we use |σ| to denote the length of σ. For an angle α, |α|[0,2π) is the magnitude of α. Furthermore, for a vector v, |v| denotes its magnitude.

Vectors and halfspaces.

For a halfspace Hd, denote by H its bounding hyperplane. (More generally, C denotes the boundary of any convex body C.) The normal vector of a halfspace H is a unit vector v𝕊d1 perpendicular to H so that for any qH, H={pd:p,vq,v}.

3 Approximating convex hulls via orthogonal queries

In this section, we present our results for Approximate Convex Hull in d via orthogonal emptiness queries. For non-adaptive queries (Section 3.1), the algorithm is very simple, while the lower bound proof is nontrivial and interesting. For adaptive queries (Section 3.2), the algorithm is more technical and the lower bound proof is simpler.

3.1 Non-adaptive orthogonal queries

We first present our algorithmic result with non-adaptive orthogonal emptiness queries. Let P[0,1]d be an unknown set of points and 𝒪 be the orthogonal emptiness oracle on P. For an axis-parallel box in d, let Query() denote the output of 𝒪 when queried with , which is 𝗒𝖾𝗌 if P= and is 𝗇𝗈 if P.

Algorithm 1 NonAdaptiveOrthogonal(q).

Our algorithm for approximating 𝒞(P) is very simple (presented in Algorithm 1) and is similar to the algorithm of Czumaj and Sohler [16] for testing convex position. Let r=q1/d. In line 2, the sub-routine Partition([0,1]d,r) partitions [0,1]d evenly into rd cells each of which is a hypercube of side-length 1r; let Γ be the set of the rd cells. Then we query 𝒪 with the boxes in Γ, and let A=Query() for Γ. Define Γ1 as the set of cells Γ with A=𝗇𝗈 (which are just the cells containing at least one point in P). Finally, the algorithm simply returns C=𝒞(Γ1). Clearly, the number of queries to 𝒪 is at most q, and they are non-adaptive as the algorithm performs them at the same time.

To bound the error of our algorithm, we need the following lemma about the volume of the Minkowski sum of a convex body and a ball; we include a proof in the full version. For two convex bodies X and Y in d, denote by X+Y={x+y:xX and yY} their Minkowski sum.

Lemma 1.

For constant d, let C[0,1]d be a convex body and Bδ be the ball with radius δ[0,1] centered at the origin of d. Then (C+Bδ)\C=O(δ) for all δ[0,1].

By construction, we have 𝒞(P)C. On the other hand, we observe that C𝒞(P)+B, where B is the ball in d centered at the origin with radius dr. As C is a polytope, it suffices to show that every vertex of C lies in 𝒞(P)+B. A vertex z of C is a corner of some Γ1. Since A=𝗇𝗈, there exists a point pP. The distance between z and p is at most dr, as the side-length of is 1r. Thus, zp+B and z𝒞(P)+B. It follows that C\𝒞(P)(𝒞(P)+B)\𝒞(P). By Lemma 1, (𝒞(P)+B)\𝒞(P)=O(1r). So we have C\𝒞(P)=O(1r)=O(q1/d).

Theorem 2.

There exists an algorithm for Approximate Convex Hull in d that performs q non-adaptive orthogonal emptiness queries and has error O(q1/d).

Interestingly, the above algorithm, while being very simple, is already the best one can hope. Specifically, we show that any deterministic algorithm for Approximate Convex hull with q non-adaptive orthogonal emptiness queries has error Ω(q1/d).

Consider such an algorithm 𝐀. Since the q queries 𝐀 performs are non-adaptive, these queries are independent of the point set P (as well as the range-emptiness oracle). Let 1,,q be these queries, each of which is a box in d. Without loss of generality, we may assume 1,,q[0,1]d. Set n=q1/d+1 and δ=q1/d/c where c is a sufficiently large constant (which only depends on d). Define a sequence H0,H1,,Hn of parallel hyperplanes in d where the equation of Hi is x1++xd=1+δi. For i[n], we say a box is i-good if Hi and Hi1=. See figure 1.

Figure 1: The lower bound construction in d=2 dimensions for non-adaptive orthogonal queries with underlying points P (red) along the main diagonal H0. The depicted query is 1-good since its lower left corner lies between H0 and H1. The length of H1 (blue) is O(δd1), so Ω(1/δd1) 1-good queries are needed to cover H1 in order to determine whether P contains a point on H1. In total, Ω(nδd1) i-good queries are needed to cover all H1,,Hn.
Lemma 3.

There exists i[n] such that at most qn boxes in {1,,q} are i-good.

Proof.

Observe that for different i,j[n], no box in d can be both i-good and j-good. To see this, suppose i<j without loss of generality. Let be a j-good box. Then Hj and Hj1=. So Hj and are on the same side of Hj1. If i=j1, then Hi= and thus is not i-good. Otherwise, ij2. In this case, Hi and are on the opposite sides of Hj1, which implies Hi= and is not i-good. Therefore, any box in d can be i-good for at most one i[n]. Let ti be the number of i-good boxes in {1,,q}. It follows that i=1ntiq and hence there exists i[n] satisfying tiq/n.

Let i[n] such that at most qn boxes in {1,,q} are i-good. Without loss of generality, assume 1,,t are i-good and t+1,,q are not i-good, where tqn. Each Hij is a (d1)-dimensional convex polytope, and let Hij denote its (d1)-dimensional volume.

Lemma 4.

For all j[t], Hij=O(δd1).

Proof.

Suppose j=[x1,x1+]××[xd,xd+] and j=[x1,+)××[xd,). Since j is i-good, we have Hij and Hi1j=, which implies 1+δiδx1++xd1+δi. So the distance from the point (x1,,xd) to Hi is O(δ). This implies Hij=O(δd1), and thus Hij=O(δd1).

Lemma 5.

Hi[0,1]dj=1tj.

Proof.

Equivalently, we prove that Hi[0,1]dj=1t(Hij). As Hi[0,1]d and Hi1,,Hit are all (d1)-dimensional convex polytopes, it suffices to show that Hi[0,1]d>j=1tHij. Since 1+δi=1+O(1c) and c is sufficiently large, Hi[0,1]d is lower bounded by a constant depending only on d. By Lemma 4, j=1tHij=O(δd1t)=O(1c). Therefore, we have Hi[0,1]d>j=1tHij, for sufficiently large c.

Next, we construct two sets Z and Z of points in d. We include in Z the vertices of the polytope Hi1[0,1]d. Furthermore, for each j[q] such that Hi1j, we include in Z a point pjHi1j. Note that all points in Z lie on Hi1[0,1]d and we have 𝒞(Z)=Hi1[0,1]d, so 𝒞(Z)=0. To further construct Z, we pick a point p(Hi[0,1]d)\(j=1tj), which exists by Lemma 5. Then we define Z=Z{p}.

Lemma 6.

For all j[q], Zj= iff Zj=.

Proof.

If pj, then Zj=Zj and we are done. So assume pj. Then j[t] by the choice of p. Thus, j is not i-good and we have either Hij= or Hi1j. But Hij since pHij. So we must have Hi1j. By construction, we include in Z the point pjHi1j, which implies Zj and Zj.

The above lemma shows that the algorithm 𝐀 cannot distinguish Z and Z, that is, it returns the same convex body when running on P=Z and P=Z.

Lemma 7.

𝒞(Z)\𝒞(Z)=Ω(δ).

Let C be the output of 𝐀 when run on P=Z or P=Z. We have 𝒞(Z)\𝒞(Z)C𝒞(Z)+C𝒞(Z). Therefore, the above lemma implies either C𝒞(Z)=Ω(δ) or C𝒞(Z)=Ω(δ). As δ=Θ(q1/d), the error of 𝐀 is Ω(q1/d).

Theorem 8.

Any deterministic algorithm for Approximate Convex Hull in d that performs q non-adaptive orthogonal emptiness queries has error Ω(q1/d).

3.2 Adaptive orthogonal queries

We now consider adaptive orthogonal emptiness queries, and show how to approximate 𝒞(P) with error O(q1/(d1)) via O(q) queries. We shall define 2d supersets of 𝒞(P), one-to-one corresponding to the vectors in {1,1}d. Our algorithm independently approximates these supersets and then merges them together. For each v=(v1,,vd){1,1}d, let Ov be the orthant {(x1,,xd):xivi0 for all i[d]}. We define 𝒞v(P)=(𝒞(P)+Ov)[0,1]d. The following observation relates 𝒞(P) with the supersets 𝒞v(P) (proof in full version).

Lemma 9.

𝒞(P)=v{1,1}d𝒞v(P).

Algorithm 2 presents how to approximate 𝒞v(P) for each v{1,1}d. It essentially “sandwiches” the hull between two convex boundaries, refining the estimate at each iteration. Figure 2 illustrates one such refinement step. The subroutine Subdivide(R) evenly partitions the hypercube R into 2d smaller hypercubes (each of which has side-length half of the side-length of R) and returns the set of these 2d hypercubes. For a hypercube R and a vector v{1,1}d, we define 𝖼𝗈𝗋(R,v)=argmaxpRp,v as the corner of R in the direction v. The algorithm starts with a set of hypercubes which initially consists of only [0,1]d, and runs in logqd1 rounds. In each round, we perform emptiness queries for the hypercubes in , and let consist of the nonempty ones. Then define U=𝒞v({𝖼𝗈𝗋(R,v):R}) and L=𝒞v({𝖼𝗈𝗋(R,v):R}). Let L=LL be the interior of L. This is simply to ensure that 𝒞v(P) is contained in UL. We then take all hypercubes in that intersect U\L, partition them using the subroutine Subdivide, and let the new be the set of the resulting smaller hypercubes. (Technically, we only need to consider the nonempty queries in , but this is equivalent in the worst case, and this way nicely ensures that our queries continue to cover all of CHv(P)). Finally, we return the convex body U in the last iteration as an approximation of 𝒞v(P).

Algorithm 2 AdaptiveOrthogonal(q,v).
Figure 2: One iteration of Algorithm 2 for d=2,v=(1,1). The four queries in are filled in gray. The upper right corners of these queries are used to compute the set U with boundary shown in blue, while the lower left corners produce L in red. The boundary of 𝒞v(P) lies in UL. The smallest dashed queries form the set for the next iteration; their union covers UL.

At a high level, the algorithm maintains an upper and lower bound (the sets U and L respectively) on the unknown convex body 𝒞v(P). At each iteration of the loop, we reduce the error volume (U\𝒞v(P))[0,1]d by half. Let t=logqd1 be the number of iterations. For i[t], denote by i the set at the end of the i-th iteration of the loop, and likewise for Li, Ui, i, i′′. Without loss of generality, we assume that v=(1,,1). The following two lemmas are used to bound the error and number of queries; their proofs are included in the full version.

Lemma 10.

For all i[t], Li𝒞v(P)Ui and 𝒞v(P)RiR.

Lemma 11.

The number of queries at the i-th iteration is at most 4dd!(2i+1)d1.

As d is a constant, Lemma 11 implies the number of queries in the i-th iteration is O((2i+1)d1). So the total number of queries is bounded by i=1t(2i+1)d1=O(q). Since each query box in the i-th iteration has volume 2id, we have

RtR2td|t|=O(2dlogq/(d1)q)=O(q1/(d1)).

By Lemma 10, this further implies (Ut\𝒞v(P))[0,1]d=O(q1/(d1)), simply because (Ut\𝒞v(P))[0,1]d(Ut\Lt)[0,1]dRtR.

We run Algorithm 2 for all v{1,1}d and let Uv be the output for v. Finally, we return C=(v{1,1}dUv)[0,1]d as the approximation of 𝒞(P). The total number of queries is still O(q). To bound the error C𝒞(P), we first observe 𝒞(P)C. Indeed, since 𝒞v(P)Uv for all v{1,1}d, we have 𝒞(P)v{1,1}dUv by Lemma 9, which implies 𝒞(P)C because P[0,1]d. Again, by Lemma 9, we have

C\𝒞(P)v{1,1}d(Uv\𝒞v(P))[0,1]d=O(q1/(d1)).

Therefore, the error of our algorithm is O(q1/(d1)).

Theorem 12.

There exists an algorithm for Approximate Convex Hull in d that performs O(q) adaptive orthogonal emptiness queries and has error O(q1/(d1)).

We complement this result by showing that any deterministic algorithm with q adaptive orthogonal queries has error Ω(q1/(d1)). The argument is similar to and simpler than that of Theorem 8, so we include the precise details in the full version. The key difference is that Lemma 3 no longer holds for adaptive queries, but we can still apply the same argument for a single pair of hyperplanes and only lose a factor n=q1/d in the resulting error bound.

Theorem 13.

Any deterministic algorithm for Approximate Convex Hull in d that performs q adaptive orthogonal emptiness queries has error Ω(q1/(d1)).

4 Approximating convex hulls via halfplane queries

In this section, we present our results for Approximate Convex Hull in 2 via halfplane emptiness queries. Instead of working on halfplane emptiness queries directly, it is more convenient to consider extreme halfplane queries, which we formalize below. For two parallel lines and , let 𝖽𝗂𝗌𝗍(,) denote the distance between them.

Definition 14 (extreme halfplane oracle).

An extreme halfplane oracle on P takes a unit vector v𝕊1 as input and returns a halfplane H with normal vector v such that PH. We say the oracle is 𝛅-accurate for a number δ0 if for every v𝕊1, the halfplane H returned by the oracle for query v satisfies the condition 𝖽𝗂𝗌𝗍(H,H)δ, where H is the minimal halfplane with normal vector v satisfying PH.

It is easy to see that a 0-accurate extreme halfplane oracle is stronger than a halfplane emptiness oracle. On the other hand, one can simulate an extreme halfplane query with accuracy δ via O(1/δ) evenly spaced non-adaptive halfplane emptiness queries. The query number can be reduced to O(log(1/δ)) via binary search in the adaptive model. The proofs of the following two lemmas are included in the full version.

Lemma 15.

Given access to a halfplane emptiness oracle 𝒪 on an unknown set P of points in the plane, one can build a δ-accurate extreme halfplane oracle on P which performs O(1δ) non-adaptive queries to 𝒪 or performs O(log1δ) adaptive queries to 𝒪.

We will also need the following lemma to argue that the error introduced by querying a δ-accurate extreme halfplane oracle, as opposed to a perfectly accurate one, is only O(δ).

Lemma 16.

Let H1,,Hr be halfplanes, C=i=1rHi, and δ[0,1]. Suppose C[0,1]2. For each i[r], let Hi be a halfplane parallel to Hi such that CHi and 𝖽𝗂𝗌𝗍(Hi,Hi)δ. Define C=i=1rHi. Then (C[0,1]2)C=O(δ).

In what follows, we discuss the results for non-adaptive halfplane queries and adaptive halfplane queries individually. Same as before, for non-adaptive queries (Section 4.1), the algorithm is simple and the lower bound proof is nontrivial, while for adaptive queries (Section 4.2), the algorithm is more technical and the lower bound proof is simpler.

4.1 Non-adaptive halfplane queries

We first present our algorithmic result with non-adaptive halfplane emptiness queries. Let P[0,1]2 be a (unknown) set of points. We shall show how to approximate 𝒞(P) with error O(1q+δ) via q non-adaptive queries to a δ-accurate extreme halfplane oracle on P. Setting δ=1q and applying Lemma 15 yields an algorithm with error O(1/q) that makes q2 non-adaptive halfplane emptiness queries. Equivalently, q queries achieve error O(1q).

Algorithm 3 NonAdaptiveHalfplane(q).

For a unit vector v𝕊1, let Query(v) denote the output of when queried with v. Our algorithm for approximating 𝒞(P) is very simple, and is presented in Algorithm 3. Let V={(sin2iπq,cos2iπq):i[q]} be q unit vectors uniformly picked on 𝕊1. We query with the vectors in V, and let Hv=Query(v) for all vV. After that, we simply return C[0,1]2 where C=vVHv. Clearly, the number of queries to is q, and they are non-adaptive as the algorithm performs them at the same time. We bound the error to O(1/q) in the full version.

Theorem 17.

There exists an algorithm for Approximate Convex Hull in 2 that performs q non-adaptive halfplane emptiness queries and has error O(1/q).

Next, we show that any deterministic algorithm that performs q non-adaptive halfplane queries must have error Ω(1/q). Consider an algorithm 𝐀. As the q queries performed by 𝐀 are non-adaptive, they are independent of the point set P. Let H1,,Hq be these queries, each of which is a halfplane in 2. For x,y(0,1), denote by x,y the line that goes through the points (x,0) and (0,y). Also, for X,Y(0,1), define X,Y={x,y:xX and yY}. Fix a parameter δ=110q, and let A={iδ:i}[13,23].

Lemma 18.

There exists a,bA such that Hi[a,a+δ),[b,b+δ) for all i[q].

Proof.

Observe that for different a,aA, the intervals [a,a+δ) and [a,a+δ) are disjoint. Therefore, [a,a+δ),[b,b+δ) and [a,a+δ),[b,b+δ) are disjoint, for (a,b),(a,b)A×A with (a,b)(a,b). It follows that for each i[q], there exists at most one pair (a,b)A×A such that Hi[a,a+δ),[b,b+δ); we charge i to (a,b) if this is the case. By construction, |A|3q and thus |A×A|9q>q. As such, there exists a pair (a,b)A×A such that no number in [q] is charged to (a,b). We then have Hi[a,a+δ),[b,b+δ) for all i[q].

Let a,bA be as in the above lemma, and p=(a2+δ10,b2+δ10). We define two sets Z={(a,0),(0,b)} and Z={(a,0),(0,b),p}; see figure 3.

Lemma 19.

The point p is below the lines a+δ,b and a,b+δ.

Proof.

Without loss of generality, we only need to show p is below a+δ,b. The equation of a+δ,b is bx+(a+δ)yb(a+δ)=0. Since a,bA, we have a,b[13,23]. So we have

b(a2+δ10)+(a+δ)(b2+δ10)b(a+δ)=(a+b+δ10b2)δ<0,

which implies that that p is below a+δ,b.

Corollary 20.

For all i[q], ZHi= iff ZHi=.

Proof.

If pHi, then ZHi=ZHi and we are done. So suppose pHi. We claim that either (a,0)Hi or (0,b)Hi. It suffices to show that at least one of (a,0) and (0,b) lies on the same side of Hi as p. Assume both (a,0) and (0,b) are on the opposite side of Hi from p. Then p and the segment a,b[0,1]2 must lie on the opposite side of Hi. But by our construction, p is sufficiently close to a,b[0,1]2, which forces Hi=x,y for some x[a,1] and y[b,1]. By Lemma 18, we cannot have x[a,a+δ) and y[b,b+δ) at the same time. So either xa+δ or yb+δ. Without loss of generality, assume xa+δ. By Lemma 19, p is below a+δ,b. Since xa+δ and yb, p is below Hi as well. But both (a,0) and (0,b) are also below Hi, contradicting our assumption. As such, we have either (a,0)Hi or (0,b)Hi. It follows that ZHi and ZHi.

The rest of the proof is almost the same as that of Theorem 8. The above lemma shows that the algorithm 𝐀 cannot distinguish Z and Z, that is, it returns the same convex polygon when running on P=Z and P=Z. We only need to observe the following simple fact.

Lemma 21.

𝒞(Z)\𝒞(Z)=Ω(δ).

Let C be the output of 𝐀 when running on P=Z or P=Z. We have 𝒞(Z)\𝒞(Z)C𝒞(Z)+C𝒞(Z). Thus, the above lemma implies either C𝒞(Z)=Ω(δ) or C𝒞(Z)=Ω(δ). As δ=Θ(1/q), the error of 𝐀 is Ω(1/q).

Figure 3: Lower bound construction for non-adaptive halfplane queries. The point p (red) is offset from the midpoint (x/2,y/2) of lx,y to lie sufficiently far above lx,y (blue) but below both lx+δ,y and lx,y+δ. Only a segment with both x-intercept in the interval [x,x+δ] and y-intercept in the interval [y,y+δ] can separate both (x,0),(0,y) from p. Doing so for all Θ(1/δ2)>q paired choices of x,y (gray lines) necessitates as many queries. Range [1/3, 2/3] enlarged for clarity.
Theorem 22.

Any deterministic algorithm for Approximate Convex Hull in 2 that performs q non-adaptive halfplane emptiness queries incurs error Ω(1/q).

4.2 Adaptive halfplane queries

We first present our algorithm with adaptive halfplane emptiness queries. Let P[0,1]2 be a (unknown) set of points. We shall show how to approximate 𝒞(P) with error O(1q2+q2δ) via O(qlogq) adaptive queries to a δ-accurate extreme halfplane oracle on P. Combining this with Lemma 15 will give us the desired result.

Same as before, for a unit vector v𝕊1, let Query(v) denote the output of when queried with v. Our algorithm for approximating 𝒞(P) is presented in Algorithm 4. We begin with a set V of unit vectors which is initially {(1,0),(0,1),(1,0),(0,1)}. We query with the vectors in V and let Hv=Query(v). Then we iteratively add more vectors to V and query with these vectors (the repeat-until loop in the algorithm). In each round, we first compute C=vVHv for the current V (line 4). Then line 5 sorts the vectors in the current V in clockwise order; let v1,,vn be the sorted sequence. Let v0=vn and σi=CHvi, which is the edge of C corresponding to the halfplane Hvi. We consider each pair (vi1,vi) of adjacent vectors satisfying 𝖺𝗇𝗀(vi1,vi)|σi|>1q2, where 𝖺𝗇𝗀(vi1,vi) denotes the magnitude of the angle from vi1 to vi. For each such pair (vi1,vi), we add a new unit vector v to V, which is the bisector of vi1 and vi, and query with v to obtain the halfplane Hv=Query(v). After this, we proceed to the next round. The procedure terminates when no more vectors are added to V in a round. At the end, the algorithm returns the convex polygon C[0,1]2 as its output.

Algorithm 4 AdaptiveHalfplane(q).

Bounding the number of queries.

Clearly, the number of queries we made in Algorithm 4 is just equal to the number of vectors in V at the end of the algorithm. Suppose the repeat-until loop in Algorithm 4 has t iterations. For i[t], let Vi be the set V at the beginning of the i-th iteration and Ci=vViHv which is just the convex polygon C in the i-th iteration. Note that Vt is just the set V at the end of the algorithm, as the algorithm does not add new vectors to V in the last iteration. For convenience, we write V0=. Denote by 𝒜(Vi) the set of angles between adjacent vectors in Vi. We first bound |Vi\Vi1| for i[t]. The proofs for this subsection are included in the full version.

Lemma 23.

|Vi\Vi1|=O(q) for all i[t].

The above lemma directly implies |Vt|=O(qt). Thus, it suffices to bound t. To this end, we establish the following properties for the angles in each 𝒜(Vi).

Lemma 24.

For all i[t] and α𝒜(Vi), we have |α|112q2.

Lemma 25.

Let i[t]. We have |α|=π2i for all α𝒜(Vi)\𝒜(Vi+1).

Lemma 24 and Lemma 25 together imply that t=O(logq). Indeed, 𝒜(Vi)𝒜(Vi+1) for all i[t1], for otherwise the algorithm terminates after the i-th iteration. Thus there exists α𝒜(Vt1)\𝒜(Vt). We have π2t1=|α|1q2 by Lemma 24 and Lemma 25, which implies t=O(logq). It follows that |Vt|=O(qt)=O(qlogq).

Bounding the error.

Next, we show that the output C[0,1]2 of Algorithm 4 satisfies (C[0,1]2)𝒞(P)=O(1q2+δ). Let V={v1,,vn} be the set of vectors at the end of Algorithm 4, where v1,,vn are sorted in clockwise order. Set v0=vn. As in the algorithm, for each i[n]0, let Hvi=Query(vi) and σi=CHvi. Then C=i=1nHvi. We have |𝖺𝗇𝗀(vi1,vi)|(|σi1|+|σi|)>1q2 for all i[n]0, for otherwise the repeat-until loop in Algorithm 4 cannot terminate. Define Lvi as the minimal halfplane with normal vector vi that contains P and C=i=1nLvi. We have CC, since LviHvi for all i[n]. Also, we have C[0,1]2, since V consists of the four vectors (1,0),(0,1),(1,0),(0,1), which guarantees that C is contained in the axis-parallel bounding box of P and thus contained in [0,1]2. Now 𝒞(P)CC[0,1]2. By Lemma 16, (C[0,1]2)\C=O(δ). So it suffices to show C\𝒞(P)=O(1q2+δ). Define μi=CLvi for i[n] and μ0=μn.

Lemma 26.

|μi||σi|+O(q2δ) for all i[n].

Proof.

Let a and a be the endpoints of μi, where a (resp., a) is on the counterclockwise (resp., clockwise) side of μi with respect to C. We first consider the general case σi and then discuss the special case σi=. If σi, let b and b be the endpoints of σi, where b (resp., b) is on the counterclockwise (resp., clockwise) side of σi with respect to C. As σiHvi and μiLvi, the 4-gon aabb is a trapezoid with parallel edges μi and σi. Therefore, we have the equation

|μi|=|σi|+htanbaa+htanbaa.

where h is the height of this trapezoid. We have hδ since 𝖽𝗂𝗌𝗍(Hvi,Lvi)δ. Furthermore, we observe that |baa|𝖺𝗇𝗀(vi1,vi) and |baa|𝖺𝗇𝗀(vi,vi+1). Indeed, baa=πbba. Since aC, the angle bba is smaller than or equal to the angle of C at the vertex b, where the latter is just π𝖺𝗇𝗀(vi1,vi). Thus,

|baa|=π|bba|π(π𝖺𝗇𝗀(vi1,vi))=𝖺𝗇𝗀(vi1,vi).

For the same reason, |baa|𝖺𝗇𝗀(vi,vi+1). By Lemma 24, it follows that |baa|112q2 and |baa|112q2. As such, |μi|=|σi|+O(q2δ).

If σi=, then C is contained in the interior of Hvi. In this case, C has a unique vertex that is closest to Hvi. Let both b and b be this vertex. The same argument applies.

The definition of each Lvi guarantees that there exists a point piP satisfying piLvi. As piPC, we have piμi. Let P={p1,,pn}. We have PP and thus C\𝒞(P)C\𝒞(P). We shall show C\𝒞(P)=O(1q2+δ), which bounds C\𝒞(P) as well. For each i[n], let ai be the intersection point of μi1 and μi, and τi be the segment with endpoints pi1 and pi. Note that C\𝒞(P)=i=1npi1piai.

Lemma 27.

pi1piai=O(|τi|(1q2+q2δ)) for all i[n].

Proof.

By construction, the distance between pi1 and pi is just |τi|. So we only need to show that the height h of pi1piai with respect to the edge pi1pi is bounded by O(1q2+q2δ). Let θ=aipipi1. As the distance between ai and pi is at most |μi|, we have

h|μi|sin|θ||μi|θ𝖺𝗇𝗀(vi1,vi)|μi|.

By Lemma 26, this implies h=𝖺𝗇𝗀(vi1,vi)|σi|+O(q2δ). Since 𝖺𝗇𝗀(vi1,vi)|σi|1q2, we have h=O(1q2+q2δ) and thus pi1piai=O(|τi|(1q2+q2δ)).

The above lemma directly implies

C\𝒞(P)=i=1npi1piai=O((i=1n|τi|)(1q2+q2δ)).

As τ1,,τn are just the edge of the convex polygon 𝒞(P), we have i=1n|τi|=O(1) and thus C\𝒞(P)=O(1q2+q2δ). As Lemma 16 implies (C[0,1]2)\C=O(δ), we have (C[0,1]2)𝒞(P)(C[0,1]2)\𝒞(P)=O(1q2+q2δ). Setting δ=1q4, we see that one can approximate 𝒞(P) with error O(1q2) via O(qlogq) queries to a 1q4-accurate extreme halfplane oracle for P.

Lemma 15 shows that a query to a 1q4-accurate extreme halfplane oracle can be simulated with O(logq) adaptive halfplane emptiness queries. Therefore, one can approximate 𝒞(P) with error O(1q2) via O(qlog2q) adaptive halfplane emptiness queries. Equivalently, if we are allowed to use q queries, then the error achieved can be bounded by O(log2qq2), i.e., O~(1q2).

Theorem 28.

There exists an algorithm for Approximate Convex Hull in 2 that performs q adaptive halfplane emptiness queries and has error O~(1/q2).

We remark that replacing the threshold 1q2 in Algorithm 4 with an even smaller number cannot result in an improvement for Theorem 28: while it can decrease the error of the output, it also increases the number of queries substantially. In fact, the bound O~(1/q2) is already tight up to logarithmic factors. The details are included in the full version.

Theorem 29.

Any deterministic algorithm for Approximate Convex Hull in 2 that performs q adaptive halfplane emptiness queries has error Ω(1/q2).

References

  • [1] Peyman Afshani and Timothy M Chan. On approximate range counting and depth. In Proceedings of the twenty-third annual symposium on Computational geometry, pages 337–343, 2007. doi:10.1145/1247069.1247129.
  • [2] Peyman Afshani and Timothy M Chan. Optimal halfspace range reporting in three dimensions. In Proceedings of the twentieth annual ACM-SIAM symposium on Discrete algorithms, pages 180–186. SIAM, 2009. doi:10.1137/1.9781611973068.21.
  • [3] Pankaj K Agarwal. Range searching. In Handbook of discrete and computational geometry, pages 1057–1092. Chapman and Hall/CRC, 2017.
  • [4] Pankaj K Agarwal, Jeff Erickson, et al. Geometric range searching and its relatives. Contemporary Mathematics, 223(1):56, 1999.
  • [5] Pankaj K. Agarwal and Jirí Matousek. On range searching with semialgebraic sets. Discrete & Computational Geometry, 11(4):393–418, 1994. doi:10.1007/BF02574015.
  • [6] Pankaj K Agarwal and Jiří Matoušek. Dynamic half-space range reporting and its applications. Algorithmica, 13(4):325–345, 1995. doi:10.1007/BF01293483.
  • [7] David Avis and David Bremner. How good are convex hull algorithms? In Proceedings of the eleventh annual symposium on Computational geometry, pages 20–28, 1995. doi:10.1145/220279.220282.
  • [8] C Bradford Barber, David P Dobkin, and Hannu Huhdanpaa. The quickhull algorithm for convex hulls. ACM Transactions on Mathematical Software (TOMS), 22(4):469–483, 1996. doi:10.1145/235815.235821.
  • [9] Jon Louis Bentley and Hermann A. Maurer. Efficient worst-case data structures for range searching. Acta Informatica, 13(2):155–168, 1980. doi:10.1007/BF00263991.
  • [10] Kevin Q Brown. Voronoi diagrams from convex hulls. Information processing letters, 9(5):223–228, 1979. doi:10.1016/0020-0190(79)90074-7.
  • [11] Timothy M Chan. Optimal output-sensitive convex hull algorithms in two and three dimensions. Discrete & computational geometry, 16(4):361–368, 1996. doi:10.1007/BF02712873.
  • [12] Timothy M Chan, Kasper Green Larsen, and Mihai Pătraşcu. Orthogonal range searching on the ram, revisited. In Proceedings of the twenty-seventh annual symposium on Computational geometry, pages 1–10, 2011.
  • [13] Bernard Chazelle. Lower bounds for orthogonal range searching: I. the reporting case. Journal of the ACM (JACM), 37(2):200–212, 1990. doi:10.1145/77600.77614.
  • [14] Bernard Chazelle, Ding Liu, and Avner Magen. Sublinear geometric algorithms. In Proceedings of the thirty-fifth annual ACM symposium on Theory of computing, pages 531–540, 2003. doi:10.1145/780542.780620.
  • [15] Artur Czumaj, Funda Ergün, Lance Fortnow, Avner Magen, Ilan Newman, Ronitt Rubinfeld, and Christian Sohler. Approximating the weight of the euclidean minimum spanning tree in sublinear time. SIAM Journal on Computing, 35(1):91–109, 2005. doi:10.1137/S0097539703435297.
  • [16] Artur Czumaj and Christian Sohler. Property testing with geometric queries. In European Symposium on Algorithms, pages 266–277. Springer, 2001. doi:10.1007/3-540-44676-1_22.
  • [17] Anne Driemel, Morteza Monemizadeh, Eunjin Oh, Frank Staals, and David P. Woodruff. Range Counting Oracles for Geometric Problems. In Oswin Aichholzer and Haitao Wang, editors, 41st International Symposium on Computational Geometry (SoCG 2025), volume 332 of Leibniz International Proceedings in Informatics (LIPIcs), pages 42:1–42:16, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2025.42.
  • [18] Herbert Edelsbrunner and Emo Welzl. Halfplanar range search in linear space and o (n0. 695) query time. Information processing letters, 23(5):289–293, 1986. doi:10.1016/0020-0190(86)90088-8.
  • [19] Jeff Erickson. Space-time tradeoffs for emptiness queries. In Proceedings of the thirteenth annual symposium on Computational geometry, pages 304–313, 1997.
  • [20] David Haussler and Emo Welzl. Epsilon-nets and simplex range queries. In Proceedings of the second annual symposium on Computational geometry, pages 61–71, 1986. doi:10.1145/10515.10522.
  • [21] Jiří Matoušek. Geometric range searching. ACM Computing Surveys (CSUR), 26(4):422–461, 1994. doi:10.1145/197405.197408.
  • [22] Morteza Monemizadeh. Facility Location in the Sublinear Geometric Model. In Nicole Megow and Adam Smith, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2023), volume 275 of Leibniz International Proceedings in Informatics (LIPIcs), pages 6:1–6:24, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.APPROX/RANDOM.2023.6.
  • [23] Edgar A Ramos. On range reporting, ray shooting and k-level construction. In Proceedings of the fifteenth annual symposium on Computational Geometry, pages 390–399, 1999. doi:10.1145/304893.304993.
  • [24] Raimund Seidel. A convex hull algorithm optimal for point sets in even dimensions. PhD thesis, University of British Columbia, 1981.
  • [25] Raimund Seidel. Convex hull computations. In Handbook of discrete and computational geometry, pages 687–703. Chapman and Hall/CRC, 2017.
  • [26] Micha Sharir and Hayim Shaul. Semialgebraic range reporting and emptiness searching with applications. SIAM Journal on Computing, 40(4):1045–1074, 2011. doi:10.1137/090765092.
  • [27] Andrew Chi-Chih Yao. A lower bound to finding convex hulls. Journal of the ACM (JACM), 28(4):780–787, 1981. doi:10.1145/322276.322289.