摘要: //代码比较长,好在逻辑比较清晰吧//调bug调了挺久,错在 我直接返回false,未回撤对visit的修改。因为在当前情况下不可行,不代表其他深搜路劲不行#include #include #include using std::sort;using std::memset;int n;const... 阅读全文
posted @ 2013-07-02 20:18 little_hsu 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 转至http://zhangjunhd.blog.51cto.com/113473/18331转至http://www.cnblogs.com/ybase/archive/2011/11/15/2249298.html 阅读全文
posted @ 2013-06-27 13:50 little_hsu 阅读(80) 评论(0) 推荐(0) 编辑
摘要: //转byte应该要指定编码方式(不然可能会出错)//PASSWORD_CRYPT_KEY需要为八位字节 package com.global.util;import java.io.UnsupportedEncodingException;import java.security.*;import... 阅读全文
posted @ 2013-06-21 14:59 little_hsu 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Tetris Windows API代码记录:1. 下面是Windows API代码框架,感觉用API写东西比别的框架清爽很多。#include LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM); //窗口过程函数/* 程序的入口点W... 阅读全文
posted @ 2013-06-18 22:54 little_hsu 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1. 下载ubuntu 12.04 desktop。 打开wubi.exe后不是wubi安装界面,出现“演示和完全安装”。这其实是他屏蔽了windows下安装ubuntu的选项。解决办法为:将wubi.exe复制到下载的ubuntu12.04-desktop目录下,在控制台下转到wubi目录下输入 ... 阅读全文
posted @ 2013-06-17 23:32 little_hsu 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 假设我们要建表X,那么我将需要执行以下步骤:注意:在我们的项目中,我们将DAO文件和X.hbm.xml归入DAO包,将表的实例化放入model包,将Service Implement放入ServiceImpl包,将Service Interface放入Service包。另外,dao-backgrou... 阅读全文
posted @ 2013-06-17 12:08 little_hsu 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 写在前面:本文仅为记录编程经验和思路,所给程序并无识别作用(可能是由于特征太少)。程序主要实现功能:时间紧迫...这个程序效果很差,只能算个demo。但是还是实现了一下几个主要功能,代码全部为自己编写。1. 完成了adaboost框架。2. logistic二值分类作为弱分类器,使用梯度下降法计算(... 阅读全文
posted @ 2013-06-17 00:39 little_hsu 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. 截取其中一部分的操作可以为:CvRect roi = cvRect(x1, y1, width1, height1);inputImage = cvLoadImage(filename);cvSetImageROI(inputImage, roi);IplImage* temp = cvCre... 阅读全文
posted @ 2013-06-16 20:03 little_hsu 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1. 解压OpenCV2.4.2到D:\2. 新建VS项目,配置“包含目录”和“库目录”:配置“包含目录”项:添加行”%opencv%\build\include”,“%opencv%\build\include\opencv”即可。配置“库目录”项:添加行”%opencv%\build\x86\v... 阅读全文
posted @ 2013-06-16 10:53 little_hsu 阅读(163) 评论(0) 推荐(0) 编辑