自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

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

转载 python机器学习 第二章(1.感知器的训练与测试)

2.1.1人工神经元的正式定义  如果把人工神经元逻辑运用在二元分类场景,将两个类分别名命为正类(1)和负类(-1)以简化操作。定义决策函数Φ(z) z=w1x1+...wmxm作为净输入。令w0=-θ,x0=1则有:          z=w0x0+...+wmxm=wTx当z≥0时,决策函数为1,反之为-1 一般将w0叫做偏置。2.1.2MCP神经元和感知器...

2019-03-15 00:45:00 572

转载 移动物体的小技巧

1.alt+鼠标左键 以物体为中心全方位观察选中物体2.按住ctrl移动物体,可以按指定步长移动,在snap setting中可以选定步长3.按住v后可以吸附选中物体的顶点,可以选择两个顶点重合 如下转载于:https://www.cnblogs.com/ZengWeiHao/p/10531150.html...

2019-03-14 16:29:00 319

转载 手链问题(循环,翻转算作一种的排列问题)

#include <stdio.h>#include<iostream>#include<string>#include<algorithm>#include<vector>using namespace std;int main(){ string s="aaabbbbccccc"...

2019-03-13 17:08:00 338

转载 递归回溯求全排列

#include <stdio.h>#include<iostream>using namespace std;void f(int x[], int k){ int i,t; if(k>=3){//出口 for(int i=0;i<3;i++)cout<<x[i]<...

2019-03-13 14:33:00 243

转载 python机器学习 第一章

1.1机器学习在20世纪下半叶演变为人工智能(AI)的一个分支,它涉及从数据中通过自我学习获得算法以进行预测。1.2三种类型的机器学习:  有监督,无监督,强化1.2.1用有监督学习预测  有监督学习:从有标签的训练数据中学习模型,以便对未知或未来的数据做出预测。“监督”一词指的是已经知道样本所需要的输出信号或标签。总之,有监督学习以带标签的训练数据训练模型,进一步将...

2019-03-12 00:09:00 138

转载 分治法求两个等长升序序列的联合中位数

#include<iostream>#include<fstream> #include<stdlib.h>using namespace std;bool judge(int n) {//判断整数奇偶 偶数返回true if(n % 2 == 0) return true; else return f...

2019-03-11 21:00:00 473

转载 蓝桥——地宫寻宝(dfs递归 动态规划)**

题目:dfs穷举递归:#include<iostream>using namespace std;const int MOD=1000000007;int n,m,k;int data[50][50];long long ans;void dfs(int x,int y,int max,int cnt){ if(x==n...

2019-03-10 17:56:00 230

转载 蓝桥——扑克排序 (穷举全排列+check())

题目:菜鸟代码:#include<iostream>#include<string>#include<algorithm>using namespace std;bool behind(string &s,int p,char a){//ѰÕÒÇ°ÃæÓÐûÓÐÓëaÏàͬµÄ×Ö·û if(p==0)retu...

2019-03-10 15:25:00 128

转载 蓝桥杯——神奇算式(相乘与结果同数)

垃圾代码。。。暴力解法。。。题目:#include <iostream>#include<cmath>#include<string.h>#include<sstream>#include<algorithm>using namespace std;bool same(string s...

2019-03-08 19:57:00 185

转载 蓝桥——剪格子(深度优先搜索+剪枝+回溯)

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include <stdio.h>#include<sstream>#include<algorithm>using namespace std;int m, n, tot...

2019-03-08 14:47:00 117

转载 蓝桥——无序数查询重复和断码(用到每行元素个数不定数据的读取和拆分)...

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include <stdio.h>#include<sstream>#include<algorithm>using namespace std;void s2i(...

2019-03-07 20:25:00 121

转载 蓝桥——商标倒放

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include <stdio.h>#include<sstream>using namespace std;void i2s(int n, string &s) { ...

2019-03-06 19:50:00 86

转载 蓝桥——格子走法

题目:代码// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>using namespace std;int f(int x, int y) { if (x == 3 || y == 4)return 1;//找出口 return f(x...

2019-03-03 21:51:00 125

转载 蓝桥——六位排他平方数

题目:代码:// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include<sstream>#include <type_traits>using namespace std;//判断string是否每个都不同bool ...

2019-03-03 21:29:00 114

转载 分治法——求逆序数**

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include <type_traits>using namespace std;int sum;int *b;void merge_sort(int a[], int low, int ...

2019-02-28 17:33:00 271

转载 分治法——循环左移

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include <type_traits>using namespace std;void reverse(char a[], int low, int high) { int i = lo...

2019-02-28 17:32:00 437

转载 算法实验1 两个数组的中位数

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include <type_traits>using namespace std;int midSearch(int a[], int b[],int na,int nb) { in...

2019-02-28 15:22:00 135

转载 分治法——二分查找

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include<string.h>using namespace std;//求每一位总和int BinSearch(int a[], int low, int high, int k) { ...

2019-02-28 13:19:00 229

转载 分治法——快速排序

// test.cpp: 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>using namespace std;void disp(int a[], int n){ for (int i = 0; i < n; i++) cout << a...

2019-02-25 23:00:00 80

转载 主方法

转自 https://www.jianshu.com/p/4d0b005782d9阅读经典——《算法导论》04在算法分析中,我们通常会得到一个关于输入规模n的递归式,形式如下:<small>(式4-1)</small>T(n) = aT(n/b) + f(n)例如,归并排序递归式 T(n) = 2T(n/2) + cn ,Stras...

2019-02-24 21:39:00 496

转载 smith数

#include<iostream>#include<string.h>using namespace std;//求每一位总和int add(int m){ int sum = 0; int bc = 0; int p, q = m; while (q > 0) { p = ...

2019-02-24 20:49:00 372

转载 数组初始化

转载于:https://www.cnblogs.com/ZengWeiHao/p/10427702.html

2019-02-24 20:20:00 83

转载 地形创建

转自 https://www.cnblogs.com/1138720556Gary/p/9323016.html第一人称漫游场景地形漫游系统:(自己绘制的GIF文件超过20MB放不上博客园。截取了几张图片)按键盘上的“上下左右”可以控制第一人称的漫游视角资源包和项目源文件:传送门自己做的项目可执行文件:传送门感谢...

2019-02-22 22:49:00 225

转载 OX得分

#include<iostream>#include<string.h>using namespace std;char a[80];int sc[80];int main(){ int i, sum = 0; while (scanf("%s", a) == 1)//注意s前无&用这种方法碰到空格tab等就...

2019-02-17 21:53:00 199

转载 引号替换 前位输出

#include<stdio.h>int main(){ int c, q = 1; while ((c = getchar()) != EOF) {//用getchar()可以边读取边处理 if (c == '"') { printf("%s", q ? "“" : "”"); ...

2019-02-07 21:03:00 66

转载 蛇形填数

#include "stdafx.h"#include<string.h>#define maxn 20int a[maxn][maxn];using namespace std;int main(){ int n, x, y, tot = 0; scanf("%d", &n); memset(a, 0, si...

2019-02-05 18:35:00 73

转载 重叠矩阵计算

平面上有两个矩形,它们的边平行于直角坐标系的X轴或Y轴。对于每个矩形,我们给出它的一对相对顶点的坐标,请你编程算出两个矩形的交的面积。#include<iostream>#include<cmath>using namespace std;double max(double x1, double x2);double min(double ...

2019-02-01 20:05:00 339

转载 保留指定位数小数 开灯问题

int main() { int a = 0; int b = 0; int c=0; double r; do { scanf("%d%d%d", &a, &b, &c); printf("%.*f\n", c,0.1*a / b);//float用f double用lf } wh...

2019-01-27 18:11:00 67

转载 基本文件输入输出

#include "stdafx.h"#include <stdio.h> int main() { FILE *fin,*fout; fin = fopen("data.in", "rb"); fout = fopen("data.out", "wb"); int x, n = 0, min, max, s = 0...

2019-01-20 18:31:00 73

转载 两个工具 输出中间结果,计时函数

1 #include <stdio.h> 2 #include <time.h> 3 int main() { 4 const int MOD = 1000000; 5 int n, s = 0; 6 //scanf("%d", &n); 7 n =10000000; 8 for (...

2019-01-20 17:53:00 106

转载 找出int类型的最大值

int n; for (int i = ?; ; i=i+#) { if (i < 0) break; cout << i << endl; } 到最大值,再加,会变负int,到最小值,再减,会变正int先可以将?设为0,#设为10000,查看最大数大...

2019-01-14 21:07:00 418

转载 输入时应该注意的问题

1.表达式输出包含x/0时会出现除零报错,无法通过编译2.输入时用scanf("%d%d",&a,&b);和cin>>a>>b 在输入时,两个数据用空格,回车分开,中间隔多少空格回车都可以。3.输入时用scanf("%d%d%d",&a,&b,&c);或在确定a b c类型为int的情况下cin>>a&g...

2019-01-14 18:53:00 291

转载 编写web_app骨架

---恢复内容开始---import logging;logging.basicConfig(level=logging.INFO)import asyncio,os,json,timefrom datetime import datetimefrom aiohttp import webdef index(request): return web.Response(b...

2019-01-12 15:20:00 146

转载 matplotlib.pyplot.scatter()函数用法

参考地址:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.scatter.html?highlight=scatter#matplotlib.pyplot.scatter函数原型:matplotlib.pyplot.scatter(x,y,s=None,c=None,marker=None,cmap=None,...

2018-11-20 22:39:00 391

转载 sklearn.datasets.make_blobs()函数用法

参考:https://scikit-learn.org/dev/modules/generated/sklearn.datasets.make_blobs.html函数原型:sklearn.datasets.make_blobs(n_samples=100,n_features=2,centers=None,cluster_std=1.0,center_box=(-10.0,...

2018-11-20 22:06:00 251

转载 关于Java中next() nextLine()的区别

**对于next()方法,会过滤掉有效字符之前的一切分隔符如回车,空格,tab。而当读取了有效字符后,再出现的分隔符将被视作扫描结束符。因此,该方法不会读取分隔符。示例:注:nextDouble() nextInt()等方法与此同理**对于nextLine()方法 会读取从扫描器开始位置(不管是分隔符还是字符)到换行为止的所有字符,包括换行符。...

2018-11-19 23:28:00 61

空空如也

空空如也

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

TA关注的人

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