传教士与野人过河问题: 任意时刻,左岸、右岸、船上如果传教士人数少于野人人数,传教士就会被野人吃掉。当然野人会划船。传教士人数为0也是可以的。 启发函数 f=g+h. g当前结点所在解空间树的深度。h=m+c-2*b. m,c分别是当前状态下左岸传教士和野人的数目。b=1表示当前船在左岸停靠。b=0 ...
分类:
编程语言 时间:
2017-04-06 19:31:39
阅读次数:
682
http://blog.tanelpoder.com/2008/09/02/oracle-hidden-costs-revealed-part2-using-dtrace-to-find-why-writes-in-system-tablespace-are-slower-than-in-other ...
分类:
数据库 时间:
2017-04-04 15:48:55
阅读次数:
277
Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2017-04-02 14:35:19
阅读次数:
155
A goal is a dream with a deadline. 目标就是给梦想设定一个期限 ...
分类:
其他好文 时间:
2017-03-24 12:07:42
阅读次数:
230
Selenium+python+API分类总结http://selenium-python.readthedocs.org/index.html分类方法方法描述客户端操作__init__(self, host, port, browserStartCommand, browserURL)构造函数。h... ...
分类:
编程语言 时间:
2017-03-10 15:02:50
阅读次数:
324
原文地址:http://www.cnblogs.com/gao241/p/3190701.html 本文以CentOS操作系统为例介绍Sonar的安装配置,以及如何与Jenkins进行集成,通过pmd-cpd、checkstyle、findbugs等工具对代码进行持续审查。 一、安装配置sonar ...
分类:
其他好文 时间:
2017-03-02 12:42:28
阅读次数:
272
D. String Game Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for h ...
分类:
其他好文 时间:
2017-02-27 20:39:44
阅读次数:
543