- 博客(24)
- 资源 (2)
- 收藏
- 关注
原创 数据结构C语言-9种排序算法(插入、交换、选择、归并、基数排序)
以下代码包含:直接插入排序、折半插入排序、希尔排序、冒泡排序、快速排序、简单选择排序、堆排序、归并排序、基数排序#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;...
2019-10-08 10:30:18
321
原创 数据结构C语言-二叉排序树
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int KeyType;typedef int InfoType;#define ENDFLAG 0typedef struct{ ...
2019-10-05 09:04:58
224
原创 数据结构C语言-线性表查找(顺序查找、折半查找)
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int KeyType;typedef int InfoType;typedef struct{ KeyType key; ...
2019-10-04 13:18:56
3321
2
原创 数据结构C语言-关键路径
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;typedef int bool;#define true 1#define false 0#define...
2019-10-03 23:23:27
568
原创 数据结构C语言-拓扑排序
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;typedef int bool;#define true 1#define false 0#define M...
2019-10-03 19:18:20
377
原创 数据结构C语言-最短路径
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;typedef int bool;#define true 1#define false 0#define...
2019-10-03 16:31:44
521
原创 数据结构C语言-最小生成树之Prim算法与Kruskal算法
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;typedef int bool;#define true 1#define false 0#define...
2019-10-03 14:22:17
855
原创 数据结构C语言-图的建立以及深度优先、广度优先遍历
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;typedef int bool;#define true 1#define false 0//邻接矩阵...
2019-10-02 18:16:13
1472
原创 数据结构C语言-哈夫曼树以及哈夫曼编码
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;typedef struct{ int weight; int parent,lchild,r...
2019-10-01 22:58:04
512
原创 数据结构C语言-线索二叉树
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef char ElemType;typedef struct BiThrNode{ ElemType data; stru...
2019-09-29 21:27:59
183
原创 数据结构C语言-二叉树
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef char ElemType;typedef struct BiTNode{ ElemType data; struct ...
2019-09-29 20:09:14
201
原创 数据结构C语言-串的模式匹配BF算法、KMP算法
#include <stdio.h>#include <stdlib.h>#include <string.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;#define MAXLEN 255typedef stru...
2019-09-29 14:46:46
1022
原创 数据结构C语言-循环队列、链队
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;#define MAXSIZE 100typedef struct{ ElemType base[M...
2019-09-28 20:24:12
168
原创 数据结构C语言-顺序栈和链栈
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;typedef int ElemType;#define MAXSIZE 100typedef struct{ ElemType *base;...
2019-09-28 16:13:54
194
原创 数据结构C语言-链表
#include <stdio.h>#include <stdlib.h>#include<malloc.h>#include<time.h>#include<windows.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;type...
2019-09-28 11:20:07
193
原创 数据结构C语言-顺序表
#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR 0#define OVERFLOW -2typedef int status;#define MAXSIZE 100typedef int ElemType;typedef struct{ ElemType *elem;...
2019-09-28 11:18:41
591
原创 子集遍历
import java.util.*;public class Text1 { private static Stack<Integer> st=new Stack<Integer>(); public static void main(String[] args) { } public static void subsetting(int n...
2019-09-22 16:05:25
293
原创 排序java实现
package demo2;import java.util.ArrayList;public class Text2 { //生成随机数个数NUM、范围[A,B] public static int NUM = 800; public static int A = 1; public static int B = 1000; public static void m...
2019-09-22 13:47:54
125
原创 应用LSTM以及SVM预测股票涨跌、下一个时间段的股票收盘值
原题目如上,本文只是针对题目简单应用了LSTM、SVM,未做深入探究。LSTM代码如下:
2019-07-22 18:58:03
2478
原创 QtPy5 获取lineEdit里的数值
代码片段如下:def setupUi(self, MainWindow): self.lineEdit = QtWidgets.QLineEdit(self.centralwidget) self.lineEdit.setGeometry(QtCore.QRect(290, 220, 201, 31)) #确认按钮 self.sure...
2019-06-02 11:05:19
17716
3
原创 ‘javac’不是内部或外部命令,也不是可运行的程序或批处理文件
系统的环境变量配置错误解决如下:1、打开:控制面板->系统->高级系统设置->高级->环境变量2、添加系统变量!系统变量!:①新建->变量名JAVA_HOME->变量值C:\Program Files\Java\jdk1.8.0_131②新建->变量名CLASSPATH->变量值.;%JAVA_HOME%\lib\dt.jar;%JAVA...
2019-06-01 10:19:22
454
原创 MySQL DELETE FROM WHERE出现的问题
输入DELETE FROM employees WHERE officeCode = 4;时出现的问题问题一:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. Cannot use range acces...
2019-03-23 19:34:42
2649
转载 关于概率
概率函数,概率分布,概率分布函数,概率密度函数概率函数: pi=P(X=ai)(i=1,2,3,4,5,6) 在这个函数里,自变量(X)是随机变量的取值,因变量(pi)是取值的概率,因此这个函数叫做X的概率函数。概率函数一次只能表示一个取值的概率。概率分布: 这张图实际就是“离散型随机变量的值分布和值的概率分布列表”,两者组合就是概率分布。-(概率分布要包含所有可能的X值)概率...
2018-08-22 15:54:58
281
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人