自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(5)
  • 资源 (9)
  • 收藏
  • 关注

原创 排序算法分析

本文是对http://blog.csdn.net/libinjlu/article/details/10948049中排序算法代码实现的分析。1.一些简单排序算法的下界。以数为成员的数组的逆序是指具有性质 i<j 但 a[i]>a[j] 的序偶(i,j)。交换两个不按顺序排列的相邻元素恰好消除一个逆序,而一个排序的数组没有逆序。由于简单插入算法中还有O(N)项其他工作,因此运行时间是O(R+N),其中R为原是数组中的逆序数。

2013-10-24 10:58:03 1304

原创 排序算法实现

对本文出现的排序算法的分析见http://blog.csdn.net/libinjlu/article/details/128592111.插入排序template <typename Comparable>void insertionSort(vector<Comparable>& a){ int j; for(int p=1;p<a.size();p++) { for(j=i-gap;j>=0&&v[j]>v[j+g

2013-10-24 10:56:28 1003

原创 C陷阱与缺陷笔记

1.当计算机启动时,硬件调用首地址为0位置的子例程:(*(void(*)())0)()解释:从里面往外看,先看里面的 void(*)(),这是个函数指针类型,这种类型的对象是函数,该函数无参数和返回值(即void)。

2013-10-17 13:43:10 863

原创 C类型转换函数

1.字符串→整型int atoi(char s[]){ int i,n,sign; for(i=0;isspace(s[i]);i++)//skip front spaces ; sign=(s[i]=='-')? -1:1; if(s[i]=='+'||s[i]=='-') //skip the sign i++;

2013-10-10 14:59:16 1015

原创 数据结构与算法分析:C++描述(Mark Allen Weiss) 和 数据结构(刘大有)笔记

1.在计算机科学中,所有的对数都是以2为底的,除非另有声明。3.如下递归是低效的(计算任何事情不要超过一次)long fib(int n){ if(n<=1) return 1;

2013-10-09 11:03:36 3493

Hands.On.Machine.Learning.with.Scikit.Learn.and.TensorFlow

Fast-forward 10 years and Machine Learning has conquered the industry: it is now at the heart of much of the magic in today’s high-tech products, ranking your web search results, powering your smartphone’s speech recognition, and recommending videos, beating the world champion at the game of Go. Before you know it, it will be driving your car.

2017-11-07

Deep Learning 英文原版

Deep Learning 英文原版 Ian Goodfellow Yoshua Bengio Aaron Courville This book is about a solution to these more intuitive problems. This solution is to allow computers to learn from experience and understand the world in terms of a hierarchy of concepts, with each concept defined in terms of its relation to simpler concepts. By gathering knowledge from experience, this approach avoids the need for human operators to formally specify all of the knowledge that the computer needs.

2017-11-05

APK去广告的一种方法

APK去广告所需资源如下: 过程大体分为以下四步:解包、去广告、打包、签名,具体如下:

2015-11-19

面向对象程序设计(C++)课件

相当经典的C++入门到精通课件,想学C++的人有福了!

2011-09-22

数值计算方法的一些课件

学习数值计算方法必备课件,可供老师学生使用。

2011-08-21

C++单词分析程序代码

输入所给文法的源程序字符串,输出源程序字符串以及分类单词(如运算符,保留字,常量等)到控制台以及文件。

2011-07-19

空空如也

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

TA关注的人

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