(计算机图形学)lecture4Incremental Construction.ppt

Computational Geometry 2D Convex Hulls (continued) Joseph S. B. Mitchell Stony Brook University O(n log n) : Incremental Construction Add points in the order given: v1 ,v2 ,…,vn Maintain current Qi = CH(v1 ,v2 ,…,vi ) Add vi+1 : If vi+1 ? Qi , do nothing Else insert vi+1 by finding tangencies, updating the hull Worst-case cost of insertion: O(log n) But, uses complex data structures * Point location test: O(log n) Binary search: O(log n) O(n log n) : Randomized Incremental Add points in random order Keep current Qi = CH(v1 ,v2 ,…,vi ) Add vi+1 : If vi+1 ? Qi , do nothing Els

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档