java新手级问题:今天使用hibernate的:Session session = this.getSession();Query query = session.createQuery("update Links set index = index"+indexStr+" where id "....
分类:
其他好文 时间:
2015-12-03 11:19:23
阅读次数:
7691
搜索专题总结第七章的例题做得差不多了,还有一道枚举二叉树和一道比较难的搜方块的没过,另外有一道火柴的用IDA*水过,并没有过大数据,由于这道可以用dancing links过,所以留着dancing links一坑。接下来总结下这章的收获,首先最重要的当然是不需要判重的高效率的IDA*以及估价函数的...
分类:
其他好文 时间:
2015-11-23 13:04:11
阅读次数:
225
1 local cache = cc.AnimationCache:getInstance() 2 cache:addAnimations("animations-2.plist") 3 local animation = cache:getAnimation("dance_1"...
分类:
其他好文 时间:
2015-11-19 20:50:34
阅读次数:
180
因为最近在搞前端的东西,需要在Eclipse下安装Spket插件,然而在线安装又连接不起,然后下了个离线的插件包,加到eclipse安装目录下的dropin目录下,怎么都导入不进去,真是尼玛的日了狗了,后来在网上百度了很多方法,都是坑。唯独这一篇博文解决了我的所有疑惑。http://blog.csd...
分类:
系统相关 时间:
2015-11-18 21:18:24
阅读次数:
241
1.对于标签以前:The home pageThis paragraph also links to the home page现在可以这么用:The home pageThis paragraph also links to the home page2.常见的非保留废弃零件有strike, en...
分类:
Web程序 时间:
2015-11-12 23:32:00
阅读次数:
326
学习笔记适合新手,如有错误请指正。?号处也请各位指点下,谢谢。分离网格链接(off-Mesh Links)用于在不链接的导航区域间创建路径,我们可将其理解为“传送门”新建一个空游戏对象,命名为Off Mesh Link Left置于左侧地形的右下角新建一个空游戏对象,命名为Off Mesh Link...
分类:
其他好文 时间:
2015-11-11 14:49:58
阅读次数:
281
题意:
给出一个n*m的01矩阵,选择其中的一些行,来精确覆盖每一列;
只需要输出是否存在解即可;
n
题解:
DLX裸题,利用双向十字链表优化搜索中的回溯问题;
因为每一列上都只能有且仅有一个1,所以如果某一列上已经有了1,那么这一列上有1的其他行也可以被删除;
根据这个思想是我们有了一个很厉害的剪枝条件,但是如果直接在矩阵中删除速度太慢,要求空间太多;
所以就有了这种支...
分类:
其他好文 时间:
2015-11-11 08:51:44
阅读次数:
258
Question:Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1.....
分类:
其他好文 时间:
2015-10-11 21:32:52
阅读次数:
250
学习资料: http://www.cnblogs.com/grenet/p/3145800.htmlhttp://blog.csdn.net/mu399/article/details/76278622份模版 第一份精确覆盖 from POJ 3074const int N = 9;const in...
分类:
其他好文 时间:
2015-10-06 23:38:58
阅读次数:
257
LinkStack://链式栈#includeusing namespace std;typedef int elemType;typedef struct StackNode{ elemType data; StackNode *next;}*LinkList;struct LinkS...
分类:
编程语言 时间:
2015-10-06 20:56:25
阅读次数:
241