自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (10)
  • 收藏
  • 关注

原创 再读算法导论,排序一(归并排序)。

工作一年了,之前在找工作的时候读过算法导论,之后就没再碰过。 作为一个程序猿,还是

2014-04-26 19:30:29 454

原创 自己写的一个基于数组实现的栈,欢迎大家批评指正,共同进步

头文件: #include using std::cout;using std::endl;using std::cin;#pragma oncetemplateclass Stack{public: Stack(void); ~Stack(void);private: T* arr; static const int EVERY_SIZE

2012-08-23 23:12:38 280

原创 中位数和顺序统计(线性时间)算法导论9.2

The general selection problem appears more difficult than the simple problem of finding a minimum. Yet, surprisingly, the asymptotic running time for both problems is the same:Θ(n). In this section,

2012-08-23 12:31:45 545

原创 线性时间排序之基数排序

头文件 Number.h#pragma once#include #include #include using namespace std;class Number{public: Number(void); Number(int num); ~Number(void); int value; int operator[](int i){//ret

2012-08-22 22:49:45 277

原创 线性时间排序之计数排序(算法导论8.2)

Counting sort assumes that each of then input elements is an integer in the range 0 tok, for some integer k. When k =O(n), the sort runs inΘ(n) time.The basic idea of counting sort is to deter

2012-08-22 15:38:12 426

原创 冒泡排序,鸡尾酒排序,插入排序,堆排序,快排序,归并排序

#include#includeusing namespace std;//int arr[11]= {3423,4,6,2,8,3,1,34,234,523,1234};void printArray(int arr[], int num){ for(int i=0;i  cout } cout}void swap(int& a,int&b){ int

2012-08-20 20:38:40 404

原创 堆(算法导论 part1 foundations, chapter 6 heapsort)

#include#includeusing namespace std;const int AD = 6;int arr[AD];void initializeArray(int arr[], int n){ srand(time(0)); for(int i=0;i  arr[i] = rand()%400; }}void swap(int& a, i

2012-08-20 11:36:14 295

原创 给定一个十进制正整数N,写下从1开始,到N的所有整数,然后数一下其中1的个数(编程之美P128)

#include#include struct SpliteNum{ int high; int cut; int low;};using namespace std;int f(long num){ int counter = 0; for(int i=1;i  int temp = i;  while(temp){   counter +=

2012-08-17 22:05:34 4852

一个用堆实现的优先级队列

一个用堆实现的最大优先级队列,支持模板,动态内存申请,一个小例子,VS2008编译通过,大家一起进步。

2012-08-20

gts 曲面运算库

曲面运算的库,vs2008下通过编译,内含debug版本的lib库,运行此工程须安装glib,glib工程可参考我的其他代码

2011-12-22

glib 2.20 windows 版本

glib 用vs2008编译好的,里面包含debug版本的lib文件

2011-12-22

clapack 矩阵运算求解库

进行数学运算的工具库,包括矩阵运算,矩阵求解等。

2011-12-22

glib-2.0.lib

编译了好久编译出的glib lib文件,可以在windows下直接使用,需下载并设置头文件

2011-12-22

Vtk The Visualization Toolkit An Object Oriented

Vtk The Visualization Toolkit An Object Oriented Approach To 3D Graphics_ 3Rd Edition vtk经典书籍

2011-12-22

vtk the visualization toolket

vtk 经典入门及开发书籍,第一卷,英文版

2011-12-22

javaSocket编程实例

本资源是简单的java socket编程实例,内涵代码,其中服务器端的编程为多线程编程,适合初学者学习

2009-04-06

JSP网络开发实例自学手册实例代码

本资源是 JSP网络开发实例自学手册 的随书代码,内包含了详细的使用方法

2009-04-01

jsp 实例代码 shopcenter实例

本资源是一个JSP的实例,内部包括了详细的代码和使用说明

2009-04-01

空空如也

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

TA关注的人

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