
算法代码
文章平均质量分 75
workdog
这个作者很懒,什么都没留下…
展开
-
快速排序
//#include //#include //#include #include //#include #define MAXSIZE 20 //排序表的最大容量typedef struct //定义排序表的结构{ int elemword[MAXSIZE]; //数据元素关键字 int count; //表中当前元素的个数}SqList;void InitialSqList(S原创 2006-12-17 14:09:00 · 746 阅读 · 0 评论 -
插入排序
//#include //#include //#include #include //#include #define MAXSIZE 20 //排序表的最大容量typedef struct //定义排序表的结构{ int elemword[MAXSIZE]; //数据元素关键字 int count; //表中当前元素的个数}SqList;void InitialSqList(SqL原创 2006-12-17 14:08:00 · 786 阅读 · 0 评论 -
Contestant and Gladiator problem
You are consulting for a game show in which n contestants are pitted against n gladiators in order to see which contestants are the best. The game show aims to rank the contestants in order of strengt原创 2006-12-17 14:25:00 · 873 阅读 · 0 评论 -
Distributed Median problem
Alice has an array , and Bob has an array . All elements in A and B are distinct. Alice and Bob are interested in finding the median element of their combined arrays. That is, they want to determine w原创 2006-12-17 14:27:00 · 1455 阅读 · 0 评论 -
计数排序
//#include //#include //#include #include //#include #define MAXSIZE 20 //排序表的最大容量typedef struct //定义排序表的结构{ int startword[MAXSIZE]; //数据元素关键字 int endword[MAXSIZE]; //结果数据段 int count; //表中当前元素原创 2006-12-17 14:09:00 · 874 阅读 · 0 评论 -
红黑树
[code]/*-----------------------------------------------------------RB-Tree的插入和删除操作的实现算法参考资料:1) >2) >3) sgi-stl中stl_tree.h中的实现算法4) http://epaperpress.com/sortsearch/index.html5) http://www.ececs.uc.e转载 2006-12-17 14:12:00 · 957 阅读 · 0 评论 -
MD5算法详细介绍
MD5算法详细介绍 大家知道MD5吗?我不多说了,玩密码首先要知道它了 MD5 叫信息-摘要算法,是一种密码的算法,它可以对任何文件产生一个唯一的MD5验证码,每个文件的MD5码就如同每个人的指纹一样,都是不同的,这样,一旦这个文件在传输过程中,其内容被损坏或者被修改的话,那么这个文件的MD5码就会发生变化,通过对文件MD5的验证,可以得知获得的文件是否完整 md5 的全称是message-dig转载 2008-01-12 21:14:00 · 9344 阅读 · 1 评论