- 博客(5)
- 收藏
- 关注
原创 Persistence & Full persistence vs. partial persistence.
Persistence对于一个允许更新和查询的数据结构,persistence是能够查询或者更新之前存储在数据结构中的版本的能力 - partial persistentce 只能更新最近的一些版本 可以查询之前的版本 每次更新返回version id, id用于查询操作来分辨查询的是哪个版本 - Full persistence 可以更新老版本 版本形成一棵树...
2018-06-14 00:44:40 333
原创 Range minimum & Lowest common ancestors
If we can solve one of these two problems in space S(n) and query time Q(n), then the same is true for the other problem.We can solve the two problems with O(n log n) space and O(1) query time (fair...
2018-06-13 15:31:25 189
原创 Range queries & Range trees
Range queries给一些空间中的数据点,查询(query)在一定查询范围(query region)中的累积信息(aggregate information)可以计算点点数量,列出点,最高优先级点,平均数,方差等Decomposable Range QueriesA range query is decomposable if there is some binary op...
2018-06-13 14:20:24 1378
原创 Prefix tree, Tries, Patricia tree, Suffix trees
Prefix tree给一个word和一个words的list,L。判断W是否在L中。用一棵根结点是word的前缀的前缀树来表示。每个节点向下的时候如果字符不同,则分成多个子节点。一棵树可以表示一组words。Trie树因为prefix tree含有大量的冗余,令每一个节点存储一个字典来表示字符,也称为digital search tree。Trie,又称前缀树或字典树,是一种有序...
2018-06-13 13:30:40 637
原创 443. String Compression
问题描述Given an array of characters, compress it in-place.The length after compression must always be smaller than or equal to the original array.Every element of the array should be a character (n...
2018-06-04 15:25:31 209
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人