会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
SO
Github : https://github.com/lasclocker
博客园
首页
新随笔
联系
管理
2015年11月20日
segment树(线段树)
摘要: 线段树(segment tree)是一种Binary Search Tree或者叫做ordered binary tree。对于线段树中的每一个非叶子节点[a,b],它的左子树表示的区间为[a,(a+b)/2],右子树表示的区间为[(a+b)/2+1,b]。如下图: ...
阅读全文
posted @ 2015-11-20 10:22 lasclocker
阅读(847)
评论(0)
推荐(0)
编辑
公告