第一次接触复杂性科学是在一本叫think complexity的书上,Allen博士很好的讲述了数据结构与复杂性科学,barabasi是一个知名的复杂性网络科学家,barabasilab则是他所主导的一个实验室,这里的笔记则是关于里面介绍的课程的笔记,当然别人的课程不是公开课,所以从ppt里只能看到...
分类:
Web程序 时间:
2015-04-10 13:00:27
阅读次数:
161
思路:
按层序遍历的思路,每次只保存该层的最后一个元素即可。...
分类:
其他好文 时间:
2015-04-08 21:37:11
阅读次数:
118
贪心:区间调度问题贪心:区间调度问题有 n 项工作,每项工作分别在 si 时间开始,在 ti 时间结束。对于每项工作,你都可以选择参与与否。参与工作的时间段不能重复 (开始的瞬间和结束的瞬间重叠也是不允许的)分析:在可选的工作中,每次都选取结束时间最早的工作// CreateTime: 2015-0...
分类:
其他好文 时间:
2015-04-07 23:00:12
阅读次数:
153
http://blog.csdn.net/anyoneking/article/details/5182164在Spring的Bean配置中,存在这样两种情况:[xhtml] view plaincopy当然,scope的值不止这两种,还包括了request,session 等。但用的最多的还是si...
分类:
编程语言 时间:
2015-04-07 19:21:17
阅读次数:
131
题目链接:https://leetcode.com/problems/reverse-words-in-a-string/反转字符串的方法有很多种。要求空间复杂度是常数的话,可以先反转所有的单词,然后反转整个字符串。例如"the sky is blue",可以先反转为"eht yks si eulb...
分类:
其他好文 时间:
2015-04-06 21:29:12
阅读次数:
155
时间限制:10000ms
单点时限:1000ms
内存限制:256MB
描述
Professor Q develops a new software. The software consists of N modules which are numbered from 1 to N. The i-th module will be started up by signal Si. If si...
分类:
其他好文 时间:
2015-04-05 20:33:27
阅读次数:
436
SOAPdenovo-63mer_v2.0 all -s TongJiN2.config -p 25 -K 63 -d 1 -R -F -o Lily_2 1>ass.log 2>ass.err-s config file-o prefix of output file name-K kmer si...
分类:
其他好文 时间:
2015-04-05 01:03:22
阅读次数:
125
主要涉及字符串操作#include
#include using namespace std;int main(){
freopen("input.txt","r",stdin);
string str;
string str2("ru");
while(cin>>str)
{
int len=str.si...
分类:
Web程序 时间:
2015-04-04 16:49:55
阅读次数:
149
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
For example:
Given the following binary tree,
1...
分类:
其他好文 时间:
2015-04-04 09:10:27
阅读次数:
119
混合策略的定义假设Pi表示采用每个纯策略的概率,我们用Pi(Si)表示在混合策略Pi下,参与者采用策略Si的概率;即Pi(Si)是Pi赋予纯策略Si的概率。举个例子,在剪刀石头布的博弈中,对于参与者i,Pi=(1/3,1/3,1/3),选石头的概率即Pi(R)=1/3。混合策略可以是一个纯策略。混合...
分类:
其他好文 时间:
2015-04-03 00:02:29
阅读次数:
244