1145 Hashing - Average Search Time (25 分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. ...
分类:
其他好文 时间:
2019-11-20 16:57:03
阅读次数:
104
mplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the ne ...
分类:
其他好文 时间:
2019-11-17 01:45:19
阅读次数:
59
Tajima F (1989) Genetics 123:585-595 1 Average number of pairwise nucleotide differences \( \hat k = \frac{\sum\sum_{i<j} k_{ij}}{\binom{n}{2}} \) \( ...
分类:
其他好文 时间:
2019-11-09 22:00:49
阅读次数:
571
要测试linux系统性能及调优,首先要从全局检查linux的平均负载 1.什么是平均负载 load average 系统平均负载被定义为在特定时间间隔内运行队列中的平均进程数。也可简单理解为平均活跃进程数。 简单来说,平均负载是指单位时间内,系统处于可运行状态和不可中断状态的平均进程数,也就是平均活 ...
分类:
系统相关 时间:
2019-11-08 12:04:48
阅读次数:
124
题意 给出一个长度为$n$的序列$\{a_i\}$,定义一棵$n$个点的树为好树当且仅当对于每个节点有: 1. 若$a_i = 1$,$i$号节点度数随意; 2. 若$a_i \neq 1$,$i$号节点度数为$a_i$; 定义一棵树的权值为$\sum_{(u, v) \in E} u {sz}_{ ...
分类:
其他好文 时间:
2019-11-06 15:02:10
阅读次数:
80
common commands 1:split 拆分文件 2:win下合并文件 3:WInToUnix文件格式 4:top命令 差看某个进程占用内存 ...
分类:
其他好文 时间:
2019-11-03 14:46:55
阅读次数:
104
1 安装svnserve yum install subversion -y 2 创建仓库 mkdir /svn/rep1 -p mkdir /svn/rep2 -p svnadmin create /svn/rep1 svnadmin create /svn/rep2 3 修改仓库配置 rep2配 ...
分类:
其他好文 时间:
2019-11-02 20:16:43
阅读次数:
96
"题目" 题目给我们的这个东西可以转化为一棵$k$叉树,有$n+m$个叶子节点,其中$m$个权值为$1$,$n$个权值为$0$,每个非叶子节点的权值为其儿子的平均值,现在问你根节点的权值有多少种取值。 转化之后发现似乎可做了一点。(当然还是一道神仙题) 我们设$n$个权值为$0$的叶子节点的深度为$ ...
分类:
其他好文 时间:
2019-10-30 22:20:48
阅读次数:
135
http://poj.org/problem?id=2096 Description Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he ...
分类:
其他好文 时间:
2019-10-29 21:48:10
阅读次数:
113
1. 什么是linux服务器load average? Load是用来度量服务器工作量的大小,即计算机cpu任务执行队列的长度,值越大,表明包括正在运行和待运行的进程数越多。参考资料:http://en.wikipedia.org/wiki/Load_average 2. 如何查看linux服务器负 ...
分类:
系统相关 时间:
2019-10-29 21:27:25
阅读次数:
122