索引与补充 一, 什么是索引 1. 为什么要有索引? 一般的应用系统,读写比例在10:1左右,而且插入操作和一般的更新操作很少出现性能问题,在生产环境中,我们遇到最多的,也是最容易出问题的,还是一些复杂的查询操作,因此对查询语句的优化显然是重中之重。说起加速查询,就不得不提到索引了。 2. 什么是索 ...
分类:
数据库 时间:
2019-12-22 16:36:35
阅读次数:
102
1、容器的概观与分类 所谓序列式容器,其中的元素都可序(ordered)【比如可以使用sort进行排序】,但未必有序(sorted)。C++语言本身提供了一个序列式容器array,STL另外再提供vector,list,deque,stack,queue,priority-queue 等等序列式容器 ...
分类:
其他好文 时间:
2019-12-22 12:53:43
阅读次数:
93
A. Cave 洞穴勘测 LCT模板题,只需要维护一棵树的联通性即可。 B. tree 好像是为数不多LCT实现区间修改的题?注意打标记,先下放乘法,再下放加法,乘法顺便在加法标记上乘一下就完了。 C. 水管局长数据加强版 如果没有报废操作,那么只要用最小生成树维护链上最值即可。 然而水管的报废很难 ...
分类:
其他好文 时间:
2019-12-22 11:06:50
阅读次数:
90
刚开始学treap。。同学在台上给我们讲,貌似除我之外的机房dalao们都听懂了就我发呆。。。(滑稽) 于是,事后的窝只能自己上网翻书研究了。。。。 treap: treap=tree+heap,树+堆 也就是说,这个东西是个树,但是满足堆的性质。 前置知识: BST二叉搜索树: 度娘曰: 若它的左 ...
分类:
其他好文 时间:
2019-12-22 11:03:19
阅读次数:
90
16.1.1 进程与程序 ·程序 (program):通常为 binary program ,放置在储存媒体中 (如硬盘、光盘、软盘、磁带等), 为实体文 件的型态存在; ·进程 (process):程序被触发后,执行者的权限与属性、程序的程序代码与所需数据等都会被加载内存中, 操作系统并给予这个内 ...
分类:
系统相关 时间:
2019-12-22 10:49:21
阅读次数:
90
LCT:link-cut-tree 先粘个板子(可能理解深刻?) #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; int read() { int aa=0, ...
分类:
其他好文 时间:
2019-12-22 10:40:05
阅读次数:
95
Description Design an iterator over a binary search tree with the following rules: Description Design an iterator over a binary search tree with the f ...
分类:
其他好文 时间:
2019-12-22 00:54:29
阅读次数:
84
Description Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible ...
分类:
其他好文 时间:
2019-12-21 22:56:17
阅读次数:
82
4292: Count the Trees 时间限制(普通/Java):2000MS/6000MS 内存限制:65536KByte总提交: 15 测试通过:6 描述 A binary tree is a tree data structure in which each node has at mo ...
分类:
其他好文 时间:
2019-12-21 22:51:42
阅读次数:
91
Description Description Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example Exam ...
分类:
其他好文 时间:
2019-12-21 22:34:38
阅读次数:
87