Skip to Main Content
算法技术手册(原书第2 版)
book

算法技术手册(原书第2 版)

by George T.Heineman, Gary Pollice, Stanley Selkow
August 2017
Intermediate to advanced content levelIntermediate to advanced
360 pages
8h 35m
Chinese
China Machine Press
Content preview from 算法技术手册(原书第2 版)
计算几何
247
计算几何
remove segments in state between left and right
advance state sweep point down to ep
if new segments start at ep then
insert new segments into state
update = true
if intersections associated with ep then
insert intersections into state
update = true
if update then
updateQueue (EQ, left, left successor)
updateQueue (EQ, right, right predecessor)
else
updateQueue (EQ, left, right)
end
updateQueue (EQ, A, B)
if neighboring A and B segments intersect below sweep point then
insert their intersection point into EQ
end
初始化事件队列
2*
n
个点
每个事件点都表示一段线段(上或下端点)
相邻线段之间
出现的交点。
在扫描线下方发现新线段时,维护其状态
处于交点位置时,相邻的线段交换相对位置。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

机器学习实战:基于Scikit-Learn、Keras 和TensorFlow (原书第2 版)

Aurélien Géron
Go语言编程

Go语言编程

威廉·肯尼迪
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787111562221