Computing a visibility polygon using few variables

Abstract

We present several algorithms for computing the visibility polygon of a simple polygon P from a viewpoint inside the polygon, when the polygon resides in read-only memory and only few working variables can be used. The first algorithm uses a constant number of variables, and outputs the vertices of the visibility polygon in O(n) time, where denotes the number of reflex vertices of P that are part of the output. The next two algorithms use O( ) variables, and output the visibility polygon in O(n ) randomized expected time or O(n2 ) deterministic time, where is the number of reflex vertices of P.

0

Discussion (0)

Sign in to join the discussion.

Loading comments…