
ALGORITHM
文章平均质量分 77
穆夜雪殇
So you want take a leap of truth or become a old man, filled with regret ,waiting to die alone.
展开
-
straight_insertion_sort
/*直接插入排序时间复杂度:O(n^2)空间复杂度:O(1)稳定性:稳定TIME:2017年12月9日 10:19:36*/void straight_insertion_sort(int array[],int array_length){ int j=0; for(int i=1;i { if(array[i-1]原创 2017-12-09 21:13:56 · 210 阅读 · 0 评论 -
SHELL'S SORT
/*缩小增量排序:SHEEL'S SORT时间复杂度:不超过O(n^2)空间复杂度:O(1)稳定性:不稳定ascendTIME: 2017年10月16日 14:29:52*/void shell_sort(int array[],int array_length){ int step=array_length/2; while(step)原创 2017-12-11 14:55:36 · 270 阅读 · 0 评论 -
BUBBLE_SORT
/*冒泡排序:bubble sort时间复杂度:O(n^2)空间复杂度:O(1)稳定性:稳定TIME:2017年10月17日 09:43:56ascend*/void bubble_sort(int array[],int array_length){ for(int i=0;i { for(int j=0;j原创 2017-12-12 09:28:53 · 284 阅读 · 0 评论 -
QUICK_SORT
快速排序:quick sort时间复杂度:O(nlogn)空间复杂度:O(n)稳定性:稳定TIME:2017年10月18日 13:56:46*/void swap(int &a,int &b){ int temp=a; a=b; b=temp;}int partition(int array[],int low,int high)原创 2017-12-14 07:58:48 · 229 阅读 · 0 评论 -
BACK_PROPAGATION初学笔记
一、感知器神经元又叫感知器:它可以拟合任何的线性函数,任何线性分类或线性回归问题都可以用感知器来解决。异或不行,因为不能用一条直线将异或的结果分类m个输入,n个输出,隐含层为 其中单个神经元: xi 为输入,wi为权重,在-1到1之间,b为偏置项为激励值,在-1到1之间激活函数:阶跃函数: 输出=f(wi*xi+```+```+b)设阈值为1,原创 2017-12-08 10:25:20 · 294 阅读 · 0 评论