![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BFS
hongshundi
这个作者很懒,什么都没留下…
展开
-
POJ1979
摘要:BFS #include #include #include using namespace std;const int size = 20;int input[size+1][size+1] = {0};int flag[size+1][size+1] = {0};int sum = 0;struct Pos{ int x;原创 2009-11-25 20:59:00 · 398 阅读 · 0 评论 -
POJ1753
摘要:BFS, 状态压缩的搜索,位操作。 #include #include #include using namespace std;const int MAX_STATE = 0xffff;const int MIN_STATE = 0x0000;int step[MAX_STATE+1] = {0}; int getNextStat原创 2009-11-25 20:48:00 · 304 阅读 · 0 评论