![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
algorithm
文章平均质量分 64
iteye_9166
这个作者很懒,什么都没留下…
展开
-
守望者的逃离
转自<http://blog.csdn.net/xiaoke5881037/article/details/22307139> //恶魔猎手尤迪安野心勃勃.他背叛了暗夜精灵,率深藏在海底的那加企图叛变:守望者在与尤迪安的交锋中遭遇了围杀.被困在一个荒芜的大岛上//。为了杀死守望者,尤迪安开始对这个荒岛施咒,这座岛很快就会沉下去,到那时,岛上的所有人都会遇难:守望者的跑步速度...原创 2015-07-23 21:33:59 · 122 阅读 · 0 评论 -
罗马数字
转自<http://wenda.haosou.com/q/1361491934063558>XXI, 21 个位数举例 I, 1 】II, 2】 III, 3】 IV, 4 】V, 5 】VI, 6】 VII, 7】 VIII,8 】IX, 9 ·十位数举例 X, 10】 XI, 11 】XII, 12】 XIII, 13】 XIV, 14】 XV, 15 ...原创 2015-02-10 16:33:21 · 361 阅读 · 0 评论 -
Ken Thompson 的经典 C 程序
转自<http://www.cnblogs.com/coderzh/archive/2008/05/13/1194426.html> 自我复制的程序! char s[]={'\t','0','\n','}',';','\n','\n','m','a','i','n','(',')','\n','{','\n'...原创 2015-01-15 17:55:12 · 1325 阅读 · 0 评论 -
24点算法
#include <iostream>#include <vector>#include <math.h>//c1: (((A,B),C),D)//c2: ((A,B),(C,D))std::vector< std::vector<double> > permutaionSet;void sw...原创 2015-01-10 18:48:01 · 411 阅读 · 0 评论 -
高斯分布随机数
这里有一个由Marsaglia首创Knuth推荐的方法:#include <stdlib.h>#include <math.h>double gaussrand(){ static double V1, V2, S; static int phase = 0; double X; if ( phase ...原创 2014-10-08 17:01:09 · 251 阅读 · 0 评论 -
算法之排列组合算法
转自<http://dongxicheng.org/structure/permutation-combination/>1. 前言本文介绍了常用的排列组合算法,包括全排列算法,全组合算法,m个数选n个组合算法等。2. 排列算法常见的排列算法有:(A)字典序法(B)递增进位制数法(C)递减进位制数法(D)邻位对换法(E)递归法介绍常用的两种:...原创 2014-09-09 20:57:31 · 782 阅读 · 0 评论 -
世上最伟大的十个公式
转自<http://news.cnblogs.com/n/114549/>相关英文:Top Ten Greatest Equations Ever英国科学期刊《物理世界》曾让读者投票评选了“最伟大的公式”,最终榜上有名的十个公式既有无人不知的1+1=2,又有著名的E=mc2;既有简单的-圆周公式,又有复杂的欧拉公式……从什么时候起我们开始厌恶数学?这些东西原本如此美丽...原创 2014-07-20 11:13:49 · 191 阅读 · 0 评论 -
细数二十世纪最伟大的十大算法
转自<http://blog.csdn.net/v_july_v/article/details/6127953>译者:July 二零一一年一月十日------------------------------------参考文献:The Best of the 20th Century: Editors Name Top 10 Algorithms。By Barry ...原创 2014-07-20 11:06:48 · 72 阅读 · 0 评论 -
打印自身的程序
http://lifegoo.pluskid.org/wiki/Quine.html原创 2015-09-26 22:41:50 · 138 阅读 · 0 评论 -
复制特殊链表
转自<http://blog.sina.com.cn/s/blog_69824c1f0100v4ob.html>struct node { int data; struct node * next; struct node * random; }; 本题来源是ms的一...原创 2015-09-13 01:24:46 · 237 阅读 · 0 评论 -
stl:sort(stl快速排序)
http://feihu.me/blog/2014/sgi-std-sort/#introspective-sort原创 2015-07-24 22:35:47 · 416 阅读 · 0 评论 -
双数组-字典算法
转自双数组字典算法:<http://linux.thai.net/~thep/datrie/datrie.html>An Implementation of Double-Array TrieContentsWhat is Trie?What Does It Take to Implement a Trie?Tripple-Array TrieDouble...原创 2015-04-16 21:28:55 · 434 阅读 · 0 评论