自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 算法初步-排序:PAT A1075 PAT Judge (25 分)

算法初步-排序:PAT A1075 PAT Judge (25 分)题目题解 题目 The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT. Input Specification: Output Specification: For each t

2021-10-24 02:48:15 70

原创 入门模拟-简单模拟:1046 Shortest Distance (20 分)

入门模拟-简单模拟:1046 Shortest Distance (20 分) 题目题解1、解法一(最后一个测试点timeover)2、解法二小结 题目 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits. Input Specification: O

2021-09-22 09:38:19 85

原创 阶段 1:机器学习入门-机器学习概览及常见算法

常见算法介绍一、算法介绍举例:身高体重预测二、常见的机器学习算法分类1.有监督学习2.无监督学习三、常见的机器学习算法分类1.有监督学习算法**(1)分类**①内容②种类③分类算法重点==KNN====决策树==**(2)回归**2.无监督学习算法**(1)聚类算法:探索性分析**①聚类算法:K-Means**(2)关联规则**3.半监督学习算法**(1)Bagging****(2)Boosting**总结 一、算法介绍举例:身高体重预测 使误差平方和最小,得出参数和样本值之间的关系  &nbs

2021-09-19 01:13:45 85

原创 阶段 1:机器学习入门-机器学习概览及常见算法

阶段 1:机器学习入门-阶段 1:机器学习入门训练模型机器学习和人工智能之间的关系 训练模型 不断优化权值,得出模型 机器学习和人工智能之间的关系 机器具备知识: (1)专家总结经验 (2)机器自己学习 ...

2021-09-19 00:41:28 61

原创 入门模拟-简单模拟:PAT A1042 Shuffling Machine (20 分)

入门模拟-简单模拟:PAT A1042 Shuffling Machine (20 分) 题目题解1、解法一2、解法二 题目 题解 1、解法一 没看算法书上面的题解前,自己列举法暴力AC:使用String容器装入54字符串,根据洗牌次数,运用两个字符串来回赋值,这里的来回对调赋值思路很好,不用算法笔记上的next[ ]数组作为中间寄存变量,最后根据洗牌次数选择输出. #include<iostream> #include<vector> #include<string&g

2021-09-19 00:24:14 89

原创 二叉树建立及遍历输出

二叉树建立及遍历输出链式存储顺序存储 链式存储 #include<iostream> #include<queue> using namespace std; struct node{ int data; node *left , *right; node(int data = 0):data(data) , left(NULL) , right(NULL){} }; //完全二叉树 :利用层序遍历序列和bfs算法建树 void creat_tree_bfs(vector

2021-05-12 07:34:30 205

原创 构造HaffmanTree

发十三分

2021-05-09 01:45:49 109

原创 第十一届 蓝桥杯 单片机设计与开发项目 决赛

第十一届 蓝桥杯 单片机设计与开发项目 决赛题目源码赛题总结1.界面切换2.参数生效3.LED显示 题目 源码 #include <STC15F2K60S2.H> #include <intrins.h> #include "iic.h" #include "ds1302.h" #include "onewire.h" #define KEYPORT P3 #define u8 unsigned char #define u16 unsigned int u8 code

2021-05-04 14:45:56 950 1

原创 KMP算法

KMP算法 #include<iostream> #include <string> using namespace std; const int maxn = 1010; int next[maxn]; int KMP(string ss,string p) { int i,j; i = j = 0; while(i < ss.length() && j < p.length()){ if(ss[i] == p[j]){ ++i

2021-05-02 01:03:03 97

空空如也

空空如也

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

TA关注的人

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