Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
430925 | Journal of Discrete Algorithms | 2012 | 6 Pages |
Abstract
Consider a set P of n points in the plane, where each point is associated with one of three colours. We give an output-sensitive algorithm that enumerates a set of triangles T, where each triangle in T contains the origin and its three vertices are points in P with distinct colours. Our algorithm requires O(n+|T|)O(n+|T|) time, and hence it is asymptotically optimal in terms of n and |T||T|.
Keywords
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics
Authors
Amr Elmasry,