上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 迭代变量的选取: 能够唯一描述当前该问题的状态变量 该问题中有两个对应的变量:1.当前摆放到第几行2.摆放的位置 阅读全文
posted @ 2016-12-08 14:48 Pumpkin0227 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 思路来自于CSDN博客,原作者忘记了 阅读全文
posted @ 2016-12-08 09:08 Pumpkin0227 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 《Sticks》 代码:(没写完) 阅读全文
posted @ 2016-12-07 16:11 Pumpkin0227 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? The first line of input contains N, the number of test cases. Each test case begins with an integer... 阅读全文
posted @ 2016-12-07 16:08 Pumpkin0227 阅读(631) 评论(0) 推荐(0) 编辑
摘要: BFS问题,根据原来代码修改一部分即可 阅读全文
posted @ 2016-12-01 11:34 Pumpkin0227 阅读(188) 评论(0) 推荐(0) 编辑
摘要: #include #include #define SIZE 5 typedef struct node{ int x; int y; int step; }node; int map[SIZE][SIZE]={{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1}}; node queue[30]; i... 阅读全文
posted @ 2016-11-29 08:46 Pumpkin0227 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1.CSDN博客 http://blog.csdn.net/huixingshao/article/details/43667485 其中的http://home.isr.uc.pt/~henriques/circulant/(牛津大学,MATLAB) 2.http://www.gnebehay.c 阅读全文
posted @ 2016-11-25 13:53 Pumpkin0227 阅读(149) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; int const ROW = 4; int const COL = 4; int game[ROW][COL] = {0}; //上下左右 int const UP = 1; int const DOWN = 2; int const LEFT ... 阅读全文
posted @ 2016-11-25 10:31 Pumpkin0227 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //数独游戏c++ class CSudoku { int map[9][9]; int blanks; int smod; int solves; int check(int,int,int*); void dfs(); public: enum{ANY=0,ALL=1}; CSudoku(int); CSudoku::CSudoku(int *data); void... 阅读全文
posted @ 2016-11-24 17:39 Pumpkin0227 阅读(3169) 评论(0) 推荐(0) 编辑
摘要: #include #include #define SIZE 5 typedef struct node{ int x; int y; int step; }node; int map[SIZE][SIZE]={{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1},{1,1,1,1,1}}; node queue[30]; i... 阅读全文
posted @ 2016-11-24 15:43 Pumpkin0227 阅读(169) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页