
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 · 441 阅读 · 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 · 343 阅读 · 0 评论