上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
摘要: Description N cities of the Java Kingdom need to be covered by radars for being in a state of war. Since the kingdom has M radar stations but only ... 阅读全文
posted @ 2015-01-31 12:20 WhyWhy。 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Description Your boss once had got many copies of a treasure map. Unfortunately, all the copies are now broken to many rectangular pieces, and what... 阅读全文
posted @ 2015-01-31 12:12 WhyWhy。 阅读(274) 评论(0) 推荐(0) 编辑
摘要: Description There is an N*M matrix with only 0s and 1s, (1 #includeusing namespace std;// N 行 M 列 。 。 。const int INF=10e8;const int MaxN=1010;const... 阅读全文
posted @ 2015-01-31 12:04 WhyWhy。 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 作为搜索里面的一个大头,终于刷了一部分题目了,跳舞链一般都有现成的模板来套。。。。。。 至于跳舞链的学习的话,我觉得http://www.cnblogs.com/grenet/p/3163550.html 这一篇文章已经将的不能再详细了。。。。。。就不多说了。。。。。。 对于DLX问题首先... 阅读全文
posted @ 2015-01-31 12:01 WhyWhy。 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 搜索进阶的话,我觉得A*,IDA*,双向BFS应该都是吧。 双向BFS就是同时从起点和终点开始BFS,直到遇到对方标记的结点就停止(这样应该不一定是最短路),这样的话只要有解就可以减去很多种可能,从而提高效率。不过如果没解的话,两边的搜索没有交叉,也就。。。会更慢。。。 然后就是A*,这算是... 阅读全文
posted @ 2015-01-17 17:44 WhyWhy。 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Problem Description The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed wit... 阅读全文
posted @ 2015-01-17 17:43 WhyWhy。 阅读(253) 评论(0) 推荐(0) 编辑
摘要: Description Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet... 阅读全文
posted @ 2015-01-16 23:10 WhyWhy。 阅读(345) 评论(0) 推荐(0) 编辑
摘要: Description 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享 这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的... 阅读全文
posted @ 2015-01-16 23:04 WhyWhy。 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Description The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectang... 阅读全文
posted @ 2015-01-16 23:01 WhyWhy。 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0,}; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能... 阅读全文
posted @ 2015-01-16 22:59 WhyWhy。 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页