- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 8数码问题, poj1009
主要使用了A*搜索和hash函数 #include #include using namespace std; typedef struct Direction{ char pre;//前一节点到后一节点的移动方向 Direction *prior; }Direction; typedef struct State{ i
2013-04-20 16:49:14 383
原创 高位水仙花数算法
高位水仙花数 本算法主要是采用化排列为组合的方法,减少冗余。21位的测试时间为16s #include #define N 21 using namespace std; int power[10][30]; int rep[30]; int min(int a,int b) { if(a return b; } int max(int a,i
2013-04-18 13:35:43 732
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人