File size: 601 Bytes
bff4ec7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Convex Hull of Floating-Point Points

## Description

Given planar points with finite floating-point coordinates, compute their convex hull using Andrew's monotone-chain algorithm.

## Input

The verification-case input consists of an array `pts` of `n` points and writable output array `hull`.

## Output

The function produces the number of hull points, with the hull written to `hull` in boundary order.

## Constraints

- $0 \le n \le 50000$ and every arithmetic result required by the comparisons is finite.

## Source

Classical algorithmic problem reconstructed from the verified C artifact.