码迷,mamicode.com
首页 >  
搜索关键字:康拓    ( 44个结果
UVA 10085(bfs+康拓展开)八数码问题
Description Problem A The Most Distant State Input: standard input Output: standard output   The 8-puzzle is a square tray in which eight square tiles are placed. The remaining ninth square ...
分类:其他好文   时间:2014-06-10 07:59:06    阅读次数:335
【HDOJ】1043 Eight
这道题目最开始做的时候wa+TLE。后面知道需要状态压缩,最近A掉。并且练习一下各种搜索算法。1. 逆向BFS+康拓展开。 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 ...
分类:其他好文   时间:2014-06-02 05:39:04    阅读次数:259
ACM-简单题之Ignatius and the Princess II——hdu1027
ACM 简单题 Ignatius and the Princess II hdu1027 康拓展开...
分类:其他好文   时间:2014-05-22 06:26:32    阅读次数:340
wikioi 1225 八数码难题 IDA*
八数码0.0,我又来水博客了。 IDA*算法,A*为曼哈顿距离,判重用康拓展开。 #include #include #include #include #include using namespace std; int a[4][4]; int dx[]={0,0,-1,1}; int dy[]={-1,1,0,0}; char s[]="123804765"; int end[4]...
分类:其他好文   时间:2014-05-11 06:20:57    阅读次数:334
44条   上一页 1 ... 3 4 5
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!