Skip to main content
More appropriate tags
Link
HEKTO
  • 3.1k
  • 16
  • 19
Fix math mode
Source Link
John Kemeny
  • 17.1k
  • 3
  • 43
  • 67

We are given a convex hull CH = {P1, P2,polygon ..., Pn}$C = \{P_1, P_2, \dots, P_n\}$, where the points are ordered either clockwise or counter-clockwise. Additionally, we have a point Pnew = (x, y)$P_\text{new} = (x, y)$ that lies outside the convex hull. The goal is to find the point Pi$P_i$ in CH$C$ that is closest to Pnew$P_\text{new}$ in a "Logarithmic"logarithmic time complexity. (O(log n)$O(\log n)$.)

TextConvex polygon and a point

We can't use sorting because that would take O(nLog(n))$O(n \log(n))$ time, and also we can't use binary search because of the shape of a convex hull and we might delete the half that contains the answer.

We are given a convex hull CH = {P1, P2, ..., Pn}, where the points are ordered either clockwise or counter-clockwise. Additionally, we have a point Pnew = (x, y) that lies outside the convex hull. The goal is to find the point Pi in CH that is closest to Pnew in a "Logarithmic" time complexity. (O(log n))

Text

We can't use sorting because that would take O(nLog(n)), and also we can't use binary search because of the shape of a convex hull and we might delete the half that contains the answer.

We are given a convex polygon $C = \{P_1, P_2, \dots, P_n\}$, where the points are ordered either clockwise or counter-clockwise. Additionally, we have a point $P_\text{new} = (x, y)$ that lies outside the convex hull. The goal is to find the point $P_i$ in $C$ that is closest to $P_\text{new}$ in a logarithmic time complexity. ($O(\log n)$.)

Convex polygon and a point

We can't use sorting because that would take $O(n \log(n))$ time, and also we can't use binary search because of the shape of a convex hull and we might delete the half that contains the answer.

Source Link
amy
  • 41
  • 1

Closest point on a convex hull in log(n)

We are given a convex hull CH = {P1, P2, ..., Pn}, where the points are ordered either clockwise or counter-clockwise. Additionally, we have a point Pnew = (x, y) that lies outside the convex hull. The goal is to find the point Pi in CH that is closest to Pnew in a "Logarithmic" time complexity. (O(log n))

Text

We can't use sorting because that would take O(nLog(n)), and also we can't use binary search because of the shape of a convex hull and we might delete the half that contains the answer.