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