To the Max
Description:
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array. The sum of a rectangle is the sum of all the elements in that rectangle. In this problem the sub-rectangle with the largest sum is referred to as the maximal sub-rectangle.
As an example, the maximal sub-rectangle of the array:
Last week, just have a problem that how to try MasterMind problem by using genetic algorithm. The description of mastermind in below:
The game has two player: the codemaker, and the codebreaker. The codemaker select a “word”, four letters long, from the range A..F referred to as the “code”. Duplicates are allowed. The code is not visible to the codebreaker, who has a limited number of attempt to guess it. After each guess, the code maker provides feedback by specifying how many letters were correct and in the right position, as well as how many were correct but not in the right position. http://en.wikipedia.org/wiki/Mastermind_(board_game)
Lesson 1: Do not play a strictly dominanted strategy.
Lesson2: Rational choice can lead to outcomes that sucks.
Lesson3: You can’t get what you want untill you know what you want.
Lesson4: Put yourself in other’s shoes and try to figure out what they will do.
想把笔记本给重装掉,看看有啥东西有没有需要备份的,于是乎就不小心找到了人机交互这个文件夹,又不小心发现这个文件夹里有两个视频,最后确定为两雷人小视频,不分享不快啊~
为了在毕业设计中完全使用开源软件,就决定使用mySQL,因此就花了点时间肤浅地学习了下,为了更好的备份,以防忘记(即使忘记了也可以在这里找到,阿哈哈),便把学的放到这吧。早就听说mysql了,虽然被oracle收购了,前景也不明,但mysql还是值得我们学习,尊重的。
由于春节再加上本来懒,博客也很久没更新了,现在开学了,也就需要开搞毕业设计了,所以就必须找点信息检索的网站了,以下是我收藏的一些站点。由于信息检索还是国外研究得比较好,所以找的网站基本都是英文的,所以需要点英文功底,但是在这过程中,还是可以锻炼自己的英语水平的,呵呵。
学习Lucene也有点时间了,之前安装Lucene和Nutch也花了不少时间,再加上网上资料也比较少,所以想写个指南以供大家参考。由于Lucene使用Java实现的(也有C++,C#版的Lucene),所以我们就要先安装JDK。
(1)安装JDK。JDK可以从Sun公司Java官方网站下载。http://java.sun.com/javase/downloads/index.jsp。由于是windows下(Linux下可以参见以后的文章),按download,Plateform选择windows就可以下载到了。然后安装下来的程序就可以了。
(2)配置Java环境。Java的环境配置,可以说是放在新手面前的一道坎。之前也困扰到我,在了解后配置环境的原理后,我觉得简单了很多。比如在CMD情况下,你输入java,javac等命令,为什么CMD能理解呢?就是因为你给他配置了环境,它知道在哪里能找到合适的工具包来完成这条命令。知道这些后,我们就开始为java配置环境。
开个博客是心中很早之前就有的想法,但迟迟未行动。一是,可能感觉建个站会比较麻烦,二呢,由于GFW的存在,以及现在网站备案的要求,就耽搁到现在。由于早前听说Godaddy上支持支付宝付钱了,就冲动地去搜了下,结果发现cunow.info这个域名没被注册且还便宜,只需$0.99,心中暗爽,于是乎赶紧买下来。后来,肾上腺素再次分泌,就不顾三七二十一的接着买了空间,搭起了WordPress。在所有工作做好以后,却发现了一个大问题,GoDaddy上的共享IP被墙了,而冲入脑海的第一反应便是心血白费了。
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
