自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(12)
  • 收藏
  • 关注

原创 刺激正交性和相位对ssvep实验的贡献分析

信息量和方差有正比关系-从这里出发推导ssvep刺激信号之间需要满足正交性 形式化问题 出发点:希望刺激之间携带更多的信息。信息量与方差成正比。 想要分析方差,就需要有方差的表达式。开始推导。 从最简单的情况入手:假设现在有两段经过segment的刺激{a(t)},{b(t)},t=1,2,…,d\{a(t)\},\{b(t)\},t=1,2,\dots,d{a(t)},{b(t)},t=1,2,...

2019-12-07 14:45:56 699 4

转载 [转载] codeblocks + openGL 配置

源地址 https://www.cnblogs.com/lit10050528/p/4399068.html 一、选择编译器环境 这里选择codeblocks,带MinGW的版本。 二、下载glut工具包 网址:http://pan.baidu.com/s/1eQriTQM 三、配置glut 解压缩下载的glut包。 拷贝glut32.dll 到c:\windows\system ...

2019-04-26 19:10:38 205

原创 exgcd解系

A,B,C是整数 Ax+By=C 若C|gcd(a,b),则有解 exgcd得出一组解(x0,y0) 则解系 x=x0-(a/gcd(a,b))*t             y=y0+(b/gcd(a,b))*t

2017-10-19 20:58:35 345

原创 对于康拓展开的理解

康拓展开是为了给一个排列标号。 建立起排列--标号一一对应的关系。 举一个例子 {1,2,3} 排列共有六个 123 ,132 ,213,231,312,321 定义大小的含义,按字典序排列后左边小于右边。 有一种标号方式很暴力,我们可以赋予每一个位置一个权重{3!,2!,1!} 这样这六个排列都可以获得,一一对应的标号了。 但是这种标号方式有缺点。浪费比较大实际上只需要6个数就可以进

2017-02-21 20:21:21 387

原创 POJ - 2528 线段树 + 离散化

#include #include #include #include using namespace std; const int maxn = 1e5; int rr[maxn+10]; int ll[maxn+10]; int p[maxn+10]; struct Nod{ int va,q; }nod[(maxn << 2) + 10]; int bs(int l,int r,int

2017-01-17 10:24:00 295

原创 CodeForces 597C 树状数组 dp

CodeForces 597C #include #include #include #define ll long long using namespace std; const ll maxn = 1e5; ll d[maxn+10]; ll dp[15][maxn+10]; ll a[maxn+10]; ll n,k; ll lowbit(ll x){ return x&(-x); }

2017-01-16 10:29:36 331

原创 HDU 1556 树状数组

#include #include #include using namespace std; const int maxn = 1e5; int n; int lowbit(int x){ return x&(-x); } void print2(int x){ int i; // for(i = 31;i >= 0;--i) if(x & (1 << i) != 0)

2017-01-14 16:44:35 279

原创 atcoder ABC51 B题

题目链接 http://abc051.contest.atcoder.jp/tasks/abc051_b #include #include #define ll long long using namespace std; ll f(ll s,ll k){ if(s < 0) return 0; if(k >= s) return s+1; if(s%2 ==

2017-01-10 20:36:38 674

原创 codeforces 9C 数位DP做法

#include #include #define ll long long using namespace std; int dp[12][12]; int main(){ dp[1][1] = 1; dp[1][0] = 1; for(int i = 2;i <= 10;++i){ for(int j = 0;j <= 1;++j){

2017-01-03 22:25:13 470

原创 HDU 1232 并查集裸题

#include #include using namespace std; int N,M; int father[1005]; int find(int x){ if(x == father[x]) return x; else return father[x] = find(father[x]); } int main(){ while(scanf("%d",&N)

2016-12-23 16:14:52 428

原创 HDU 1233最小生成树 Kruscal 算法

Kruscal 是一种贪心策略。 按边长从小到大排序, 枚举每条边时,考察这条边的两个定点: 1.这两个顶点属于同一个集合则舍弃这条边。 2.这两个顶点不属于同一个集合则采取这条边,同时合并这两个顶点。 判断两个点属于哪个集合需要用到并查集 下面AC代码 #include #include using namespace std; typedef long long ll; co

2016-12-23 15:45:23 465

原创 HDU 2112 迪杰斯特拉最短路算法

题目 HDU 2112 迪杰斯特拉最短路 实际上就是优先队列的广搜,每次提取队列中距离最小的进行搜索 AC代码如下,用了 map set 处理字符串很方便 #include #include #include #include #include #include #include using namespace std; const int maxn = 166; int d[maxn];

2016-12-22 10:52:52 590

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除