Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 827 Bytes

README.md

File metadata and controls

12 lines (7 loc) · 827 Bytes

Kirkpartrick-Algorithm

Kirkpatrick algorithm for efficient search of a point inside a simple polygon

This is a Point Location Algorithm. Given a polygon on a plane, an answer should be given for any point located on the plane, whether it lies inside the polygon or not.

Krkpatrick's algorithm works in O(logn) time and requires O(n) of memory, where n is the number of vertices on the polygon.

A good description of how the algorithm works can be found here.

The original paper is Optimal Search in Planar Subdivisions by D.Kirkpatrick.

Yet Another Amazing Visualization of the Algorithm