Comments (5)
据我的了解:
可持久化线段树是指狭义的可持久化,也就是“persistent”这词的含义,包括“部分可持久化”和“完全可持久化”等。(详见 wikipedia: persistent data structures)
函数式是指“functional”,这是在 Programming Language Theory 中的一个概念。可以理解为对数据结构的所有操作都不能修改已有数据,而必须是建立新的数据(如新的“结点”)。
函数式线段树是指使用函数式编程**的线段树。通常只要用完全可持久化(fully persistent)线段树就可以实现。
另一方面,多棵结构相同的线段树(可以是可持久化线段树、函数式线段树)能够进行一些算术运算,比如加法和减法。这样能表示一些单棵线段树难以表示的信息。
主席树往往指“区间的权值线段树”。这可以通过构造每个前缀区间的(可持久化)权值线段树,再通过减法运算来实现。主席树多用于“区间第 k 大”类型的题目。
希望能对这类问题有帮助。
from oi-wiki.
可持久化线段树就是主席树
from oi-wiki.
放在一起没有问题
from oi-wiki.
因为发现可持久化线段树可以合并,相减的人叫黄嘉泰,hjt,让人想起胡锦涛,所以外号是主席
from oi-wiki.
然后那个不叫persistent,叫Chair-Tree,是发明人自己说的
from oi-wiki.
Related Issues (20)
- [内容有误] A * 页面例题 「八数码」参考代码有误
- [内容有误] A * 页面例题 「八数码」参考代码有误
- Add 时间库相关介绍 HOT 3
- Add 集合论目录 HOT 1
- Add NTT模数表 HOT 2
- [内容有误] Arbiter 2.0 还需要开栈吗? HOT 2
- [内容有误] 计算几何-凸包页面的Andrew算法的python代码 HOT 1
- [内容有误] Python `str` 和 `chr` 的用法有误 HOT 1
- Add 在线莫队 HOT 4
- [内容有误] 埃及分数示例代码可被 hack
- [WARN] 处理配对堆页面下图片有 Warning HOT 1
- [WARN] 某些 SVG 导致 Typst 编译 Warning HOT 3
- [内容有误] trie 页面例题描述需要补充 HOT 14
- [内容有误] B+ 树页面 typo HOT 1
- [内容有误] 二次剩余页面中,关于 Euler 判别法的证明的第三行有误。 HOT 1
- [内容有误] 二分图最大权匹配费用流算法 HOT 4
- [内容有误] CARMICHAEL 函数定义处公式有误 HOT 2
- [内容有误] dijkstra算法的暴力Python代码的变量打错了 HOT 1
- Add 多项式复合 O(nlog^2n) 的方法 HOT 4
- [内容有误] k 短路的可持久化可并堆代码有误 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oi-wiki.