- 博客(19)
- 收藏
- 关注
原创 eeglab基础学习
eeglab基础学习 Channels per frame:是channel number 电极数 Frames per epoch:是epoch个数 Epochs:EEG分段 Events:数据集中事件(诸如刺激呈现、被试反应)的数目 Smapling rate(Hz): Epoch start(sec):开始时间 Epoch end(sec):截止时间 Reference:参考电极 Channel locations:头皮坐标是否已经定位 ICA weights:ICA分析得到的weights ...
2021-09-08 09:39:03
773
原创 中国石油大学华东自动疫情上报源码
适用人群:前一天的定位就在学校里的同学(其他情况没测试过),否则你需要改一下定位: sign_data = { 'area': '你定位的省 你定位的市 你定位的县', 'province': '你定位的省', } 全部源码: import requests '''输入你的学号和密码即可''' # 你的学号 username = '你的学号' # 你的密码 password = '你的密码' # 通用代理头 header = {'user-agent'
2021-08-27 18:41:42
881
3
原创 蚁群算法求解TSP问题
package ZhiXinGeGe.ServiceImpl; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class TSP { public static final int m=100; //蚂蚁总量 public static final int n=31; //城市总数 public static f
2021-05-02 14:02:26
264
原创 z进制转q进制
#include #include using namespace std; int main() { string x;//存待转数 int z;//当前进制 int q;//目标进制 int t = 0;//目标结果 cout << “请输入当前进制:” << endl; cin >> z; cout << “请输入待转数字:” << endl; cin >> x; cout << “请输入目标进制:” <<
2021-01-29 16:15:29
388
原创 模式串匹配算法
BF算法 int Index(SString S, SString T, int pos) { //pos为T【1】在S串的首次出现位置,若未找到则返回0 //SString中下标为0记录着串的长度 i = pos; j = 1; while (i <= s[0] && j <= T[0]) { if (S[i] == T[j]{ i++; j++; } else { i = i - j + 2; j = 1; } } if (j
2020-09-05 14:42:19
213
原创 python刷问卷星
借助burpsuite import requests from time import * from random import randint for i in range(1000): header = { 'Host' : 'www.wjx.cn', 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/.
2020-06-30 01:27:41
3624
原创 数据结构C++版图的DFS和BFS算法
DFS递归方法: //DFS /// <param name="G">要遍历的图对象</param> /// <param name="v">开始遍历的顶点</param> void DFS(Graph& G, const int& v) { int i, loc, n = G.NumberOfVertices(); //获取途中顶点个数 bool* visited = new bool[n];
2020-06-11 23:29:11
652
原创 数据结构C++版邻接表图
代码实现: //邻接表图 #include<iostream> using namespace std; const int DefaultVertices = 30; struct Edge { int dest; //边的另一个顶点的位置,用结构体数组的下标表示 int cost; //边的权值 Edge* link; //下一条边链指针 Edge() { } Edge(int num, int weight) :dest(num), co
2020-06-11 22:45:05
269
原创 数据结构C++版邻接矩阵图
代码实现: //邻接矩阵图 #include<iostream> using namespace std; const int DefaultVertices = 30; const int maxWeight = -1; class Graph { public: Graph(int sz = DefaultVertices) { maxVertices = sz; numEdges = 0; numVertices = 0; int i, j; VerticesList
2020-06-11 17:06:27
283
原创 数据结构C++版链式二叉树
代码实现: //二叉树 #include<iostream> #include<queue> using namespace std; struct BinTreeNode { char data; BinTreeNode* LeftChild, * RightChild; BinTreeNode() :LeftChild(NULL), RightChild(NULL) { } BinTreeNode(char x, BinTreeNode* l = NULL, BinT
2020-06-10 15:32:43
346
原创 C++版模式串匹配算法
1.BF算法: 暴力而又简单的算法,效率不高。 bool BF(string a, string b) { int j; for (int i = 0; i <= a.length()-b.length(); i++) { for (j = 0; j < b.length(); j++) { if (a[i + j] != b[j])break; } if (j == b.length())return true; } return false; } 2.kmp算法:
2020-06-08 17:18:04
383
原创 数据结构C++版循环队列
代码实现: //循环队列 #include<iostream> #include<assert.h> using namespace std; class SeqQueue { public: SeqQueue(int sz = 10) :front(0), rear(0), maxSize(sz) { elements = new int[maxSize]; assert(elements != NULL); } ~SeqQueue() { delete[]ele
2020-06-08 14:54:54
224
原创 数据结构C++版链式队
代码实现: //链式队 #include<iostream> using namespace std; struct LinkNode { int data; LinkNode* link; LinkNode(LinkNode* ptr = NULL) { link = ptr; } LinkNode(const int& item, LinkNode* ptr = NULL) { data = item; link = ptr; } }; class Linke
2020-06-07 22:35:03
187
原创 数据结构C++版链式栈
代码实现: //链式栈 #include<iostream> #include<assert.h> using namespace std; struct LinkNode { int data; LinkNode* link; LinkNode(LinkNode* ptr = NULL) { link = ptr; } LinkNode(const int& item, LinkNode* ptr = NULL) { data = item; lin
2020-06-07 19:30:12
236
原创 数据结构C++版顺序栈
代码实现: //顺序栈 #include<assert.h> #include<iostream> #include<stdio.h> using namespace std; const int stackIncreament = 20; class SeqStack { public: SeqStack(int sz = 5):top(-1),maxSize(sz){ elements = new int[maxSize]; assert(elements
2020-06-07 03:08:17
201
原创 c++版哈夫曼编码
代码实现: #include<iostream> #include <cstdio> #include<string> using namespace std; struct LinkNode { char elem; int count; int bianma; char bm[500]; LinkNode* link; LinkNode* hlink; LinkNode* rc; LinkNode* lc
2020-06-07 02:18:57
367
原创 c++版排序算法
代码实现: #include<iostream> using namespace std; int a[10] = { 10,4,9,8,2,1,3,6,7,5 }; int sign = 0; int sign2 = 0; void init() { a[0] = 10; a[1] = 4; a[2] = 9; a[3] = 8; a[4] = 2; a[5] = 1; a[6] = 3; a[7] = 6; a[8] =
2020-06-07 02:09:36
156
原创 数据结构C++版链式表
//链式表 #include<iostream> using namespace std; struct LinkNode { int data; LinkNode* link; LinkNode(LinkNode* ptr = NULL) { link = ptr; } LinkNode(const int& item, LinkNode* ptr = NULL) { data = item; link = ptr; } }; class List { publ
2020-06-07 01:31:29
425
原创 数据结构C++版顺序表
数据结构C++版顺序表 代码实现: //线性表 #include<iostream> using namespace std; const int defaultSize = 100; class SeqList { public: SeqList(int sz = defaultSize) { if (sz > 0) { maxSize = sz; last = -1; data = new int[maxSize]; } } SeqList(SeqL
2020-06-07 00:24:52
238
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅