算法
RunningSunBoy
Coding for fun~
展开
-
divide-conquer 递归查找最小距离 closest-pair algorithm
#include#include#includeusing namespace std;/************************************************************************//* 程序功能:采用closestPair算法,求解点集中最小距离 *//**********原创 2014-10-28 22:34:17 · 535 阅读 · 0 评论 -
divide-conquer逆序数计算-C++
#include#include#include#includeusing namespace std;#define ARRAY_SIZE 6/************************************************************************//* all inversions are calculated in原创 2014-10-28 16:35:54 · 646 阅读 · 0 评论 -
Huffman编码
#include#include#include#include#include#include#includeusing namespace std;typedef struct node{ float value; node * leftChild; node * rightChild; string HuffmanCode;}Node;/**********原创 2014-11-02 13:53:31 · 412 阅读 · 0 评论