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

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

by George T.Heineman, Gary Pollice, Stanley Selkow
August 2017
Intermediate to advanced
360 pages
8h 35m
Chinese
China Machine Press
Content preview from 算法技术手册(原书第2 版)
270
10
൶ᇘࡀఇ
10-3:使用基于区域划分的四叉树
基于点的四叉树
四叉树将笛卡平面
2
k
×
2
k
的空间直接映射为二叉树结构,其中每个结点最多可以
存储
4
个点。如果某个点加入一个未被切分的区域中,那么该区域会被继续切分
4
个子区域,其中每个子区域大小为父结点
1/4
。如果某个象限中不存在任何点,
那么该象限就没有子结点。因此,树的形状依赖于点加入到四叉树中的顺序。
本章主要关注基于点的四叉树。图
10-4
所示为包含
13
个点的
256
×
256
区域的四叉树示
,图中右侧所示即为四叉树的结构。注意:根结点的东南象限没有任何点,因此根
仅有
3
个子结点。还 注意的是,各种不同的区域细分是以加入四叉树中的点为基础的
10.4.3 R
R
是一个树状结构,其中每个结点最多包含
M
个指向子结点的连接。所有实际信息均
存储在叶结点中,每个叶结点最多可以存储
M
个不同的矩形。图
10-5
展示了
M
= 4
R
树,
其中共有
6
个矩形插入树中(标号为
1
2
3
4
5
6
,图中右侧所示即为构建出的
R
树,其中每个内部结点代表了实际矩形中的不同矩形区域。
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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

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

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

Aurélien Géron
Go语言编程

Go语言编程

威廉·肯尼迪

Publisher Resources

ISBN: 9787111562221