自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

SuperNova

热爱生活和学习!!!

  • 博客(51)
  • 资源 (5)
  • 收藏
  • 关注

原创 BOF算法+K-Means算法实现图像检索(Matlab实现代码)

更新: 很多同学告诉我说代码运行有问题,运行的时候缺少文件或者找不到文件,我在这里补充一下: 大家需要把里面的SIFT_features等三个文件夹添加到文件路径,不然matlab运行的时候只会搜索当前文件夹下文件。具体做法是,在matlab里面选中文件夹,右键-》添加到文件路径-》选定的文件夹和子文件夹。然后运行do_demo.m就行了再补充一下,有同学提醒说k-means算法

2016-04-13 19:37:24 14852 37

原创 数据挖掘经典算法概述以及详解链接

po主最近在学习数据挖掘方面相关算法,今天就在这里总结一下数据挖掘领域的经典算法,同时提供每个算法的详解链接,就当做在这里温习吧。对于熟悉的算法我会有较多的描述,不熟悉的算法可能描述较少,以免误导,但是会贴出学习的链接。由于本人也是资历尚浅,必然有错误的地方,也希望大家能够指出来,我也会改正的,谢谢大家。数据挖掘方面的算法,主要可以用作分类,聚类,关联规则,信息检索,决策树,回归分析等。他们的界限并

2016-04-08 17:06:18 9334 1

原创 web挖掘之Apriori算法 JAVA实现

博主初次接触数据挖掘方面的研究,从最经典最基础的Apriori算法编起,不过这是博主前几个月写的了,所以现在也是凭印象写的,有些粗糙,还请谅解。下面讲解部分为转载1 Apriori介绍 Apriori算法使用频繁项集的先验知识,使用一种称作逐层搜索的迭代方法,k项集用于探索(k+1)项集。首先,通过扫描事务(交易)记录,找出所有的频繁1项集,该集合记做L1,然后利用L1找频繁2项集的集合L2,L2

2015-08-17 01:52:25 2848

原创 使用逆波兰式(后缀表达式)实现多功能计算器

由于这是之前的小作业了,之前贴出来没注意,后来发现格式太乱了根本看不了,所以今天再贴出来一下,这次的计算器比我之前写的要复杂很多,主要是通过逆波兰式实现的,没有界面,计算器是我之前的一个软肋啊,编了好多次都没有写出来。 这次这个,我试着调了很多次bug,以及很多种情况,尽量完善了,但是如果还有没考虑周全的,希望大家提出来,亲测代码可用。当然,为了方便起见,我把代码都整合到一个cpp文件的,主要也是

2015-08-17 01:06:37 6281 1

转载 LIBSVM的使用方法

【原文:http://wenku.baidu.com/view/7e7b6b896529647d27285276.html】目 录1 Libsvm下载… 32 Libsvm3.0环境变量设置… 33 训练和测试数据集下载… 34 运行python程序的环境配置… 35 LIBSVM 使用的一般步骤是:… 36 再来说一下,libsvm-3.0的需要的数据及其格式。… 47 Libsvm数据格式制作

2017-03-16 09:23:36 812

原创 Redis数据库的dump备份与aof备份

Redis自动备份有两种方式,第一种是通过dump.rdb文件实现备份,另外一种使用aof文件实现自动备份。Dump.rdb备份Redis中默认使用dump.rdb文件实现备份,如果aof备份没有打开,那么启动redis时,会默认从dump.rbd文件中读取原始数据.如何配置dump.rdb备份,在redis.conf文件中有命令:save 900 1save 300 10save 60 100

2017-01-13 17:03:46 4527

原创 Redis安全配置,以防数据库被入侵恶意清空,数据丢失,且dump.rdb文件无法恢复

最近比较衰,Redis数据库被好几次恶意攻击,导致里面的数据完全丢失。dump.rdb和appendonly.aof文件都不能恢复。一开始没有意识到数据库被攻击,后来几个数据库连续这样,才发现有问题。被攻击后redis里面多了一个crackit表,打开一看发现对方通过入侵自己的redis数据库,然后利用dump文件获得服务器的root权限,企图使用自己的数据库挖矿(minerd,俗称挖比特币)。最近

2017-01-11 21:51:24 5182 1

转载 支持向量机通俗导论(理解SVM的三层境界)

原微博地址:支持向量机通俗导论(理解SVM的三层境界)目录(?)[-]            支持向量机通俗导论理解SVM的三层境界前言第一层了解SVM1分类标准的起源Logistic回归2线性分类的一个例子3函数间隔Functional margin与几何间隔Geometrical margin 4最大间隔分类器Maximum Margin Classifier的

2017-01-03 16:28:22 4356

转载 常见JedisConnectionException异常分析

纯属用于笔记,转自:http://blog.csdn.net/fachang/article/details/7984123最近项目开发中用到了Redis, 选择了官网推荐的Java client Jedis。Redis常用命令学习:http://redis.io/commandsRedis官方推荐Java客户端Jedis(包含了所有Redis命令的实现):http

2016-12-23 10:42:15 616

转载 分布式服务框架 Zookeeper -- 管理分布式环境中的数据

安装和配置详解本文介绍的 Zookeeper 是以 3.2.2 这个稳定版本为基础,最新的版本可以通过官网 http://hadoop.apache.org/zookeeper/来获取,Zookeeper 的安装非常简单,下面将从单机模式和集群模式两个方面介绍 Zookeeper 的安装和配置。单机模式单机安装非常简单,只要获取到 Zookeeper 的压缩包并解压到某个目

2016-11-16 10:53:18 413

转载 决策树J48算法

文章来之:http://www.cnblogs.com/chamie/p/4523976.html1、J48原理  基于从上到下的策略,递归的分治策略,选择某个属性放置在根节点,为每个可能的属性值产生一个分支,将实例分成多个子集,每个子集对应一个根节点的分支,然后在每个分支上递归地重复这个过程。当所有实例有相同的分类时,停止。  问题:如何选择根节点属性,建立分支呢?

2016-10-14 11:09:04 7004

原创 Eclipse中修改JSP文件名称后无法访问解决方法(404)

eclipse中Rename jsp文件后,相应的jsp文件无法访问,出现404问题解决方案: jsp文件名修改后,tomcat服务器上的文件仍未修改,这时就会访问不到文件,需要把tomcat缓存清除一下。首先remove tomcat下该项目,然后重新部署,再像下面一样clean一下就可以了参考链接:http://tieba.baidu.com/p/2467361177

2016-09-08 19:52:24 6754

原创 JSP页面中文乱码问题处理

JSP页面显示乱码,可以将JSP代码中的charset和pageEncoding设置为utf-8 如下:<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional

2016-09-08 14:32:42 829

原创 JSP页面设置登录访问权限

如何限制页面必须在满足某些条件后才能访问?比如下面这个例子: 这是一个简单的登录界面,输入用户名和密码后,经过后台的验证,进入到相应的主界面按照常理来说是这样的,但是我们发现,当我们直接访问主界面main.jsp时,却也可以直接进入到主界面,比如:(注意URL)这就对系统造成了很大的安全隐患 怎么限制主界面必须在登录之后才能访问呢?其实也很简单首先,我们在后台验证用户正确登录之后,跳转到相应页面

2016-09-08 14:24:12 19629 5

原创 (LeetCode 18) 4Sum

Q: Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.Note: Elements in a

2016-04-22 01:04:44 414

原创 (LeetCode 15) 3Sum

Q: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.Note: Elements in a triplet (a,b,c) must

2016-04-22 00:57:42 399

原创 (LeetCode 16) 3Sum Closest

Q: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exac

2016-04-22 00:36:28 365

转载 并查集(Union-Find)算法介绍

原博地址:http://blog.csdn.net/dm_vincent/article/details/7655764本文主要介绍解决动态连通性一类问题的一种算法,使用到了一种叫做并查集的数据结构,称为Union-Find。更多的信息可以参考Algorithms 一书的Section 1.5,实际上本文也就是基于它的一篇读后感吧。原文中更多的是给出一些结论,我尝试给出一些

2016-04-20 23:27:42 431

原创 (LeetCode 200)Number of Islands(并查集、DFS)

Q: Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may ass

2016-04-20 23:23:59 3636

原创 (LeetCode 130)Surrounded Regions(并查集)

Q: Given a 2D board containing ‘X’ and ‘O’, capture all regions surrounded by ‘X’.A region is captured by flipping all ‘O’s into ‘X’s in that surrounded region.For example, X X X X X O O X X X O X

2016-04-20 22:07:34 3815

原创 (LeetCode 130) Surrounded Regions(BFS)

Q: Given a 2D board containing ‘X’ and ‘O’, capture all regions surrounded by ‘X’.A region is captured by flipping all ‘O’s into ‘X’s in that surrounded region.For example, X X X X X O O X X X O X

2016-04-20 16:45:54 1746

原创 (LeetCode 223) Rectangle Area

Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner as shown in the figure. Assume that the total area is

2016-04-19 21:58:14 607

原创 (LeetCode 299) Bulls and Cows (HashTable)

Q: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your friend makes a guess, you provide a hint

2016-04-19 12:23:38 469

原创 (LeetCode 342) Power of Four

Q: Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example: Given num = 16, return true. Given num = 5, return false.Follow up: Could you solve it without loop

2016-04-19 10:56:11 565

原创 (LeetCode 279) Perfect Squares

Q: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.For example, given n = 12, return 3 because 12 = 4 + 4 + 4; given n = 13, re

2016-04-19 10:36:01 340

原创 (LeetCode 101) Symmetric Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3 题意就是问一个二叉树是不是对称的。sol

2016-04-18 23:32:31 271

原创 (LeetCode 264) Ugly Number II

Q: Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence of the first 10

2016-04-18 21:58:40 354

原创 (LeetCode 79) Word Search

Q: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where “adjacent” cells are those horizontally or vertically

2016-04-18 21:04:41 379

原创 (LeetCode 322) Coin Change

Q: You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of mon

2016-04-18 11:16:46 605

原创 (LeetCode 202) Happy Number

Q: Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares

2016-04-17 17:11:39 306

原创 (LeetCode 307) Range Sum Query - Mutable(树状数组讲解)

Q: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.The update(i, val) function modifies nums by updating the element at index i to val. Example:

2016-04-17 15:45:04 3246

原创 (LeetCode 307) Range Sum Query - Mutable(Segment Tree)

Q: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.The update(i, val) function modifies nums by updating the element at index i to val. Example:

2016-04-17 15:10:10 1144

原创 (LeetCode 304) Range Sum Query 2D - Immutable

Q: Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). Range Sum Query 2D The above rectang

2016-04-16 12:47:54 371

原创 (LeetCode 303) Range Sum Query - Immutable

Q: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example: Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2) -> 1 sumRange(2, 5) -> -1 sumRange(

2016-04-16 09:49:57 366

原创 (LeetCode 190) Reverse Bits

Q: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 0011100101

2016-04-16 01:16:42 380

原创 (LeetCode 191) Number of 1 Bits

题: Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary representation 000000000

2016-04-16 00:29:33 347

原创 (LeetCode 231)Power of Two

题: Given an integer, write a function to determine if it is a power of two.也就是判断一个数是不是2的幂次方solution: 这道题解法很多,最简单的就是循环。 已知2的幂次方的二进制中有且只有一位为1。 我们向右移动,直到当前位为1。再在当前状态右移一位,如果是零那么就是2的幂次方。class Solution {

2016-04-15 23:54:43 465

原创 (LeetCode 326)Power of Three

po主第一篇LeetCode练习题: Given an integer, write a function to determine if it is a power of three.Follow up: Could you do it without using any loop / recursion? 意思就是判断一个数是不是3的幂次方,尽量不用循环与递归?solution: 使用递

2016-04-15 23:24:46 703 4

原创 读取指定文件夹中所有文件名以及文件路径,并读到matlab

怎么可以把一个文件中所有文件名或者文件路径读取到一个txt文件中这个时候,在cmd命令行下面的dir命令就很合适,那么使用下面命令即可:dir path\folder /on /b /s > path\list.txt举个例子:我在我电脑上执行下面命令:dir G:\java /on/b/s > G:\java\path.txt便会在G:\java下生成一个path.t

2016-04-10 16:11:56 11333 2

原创 关于matlab程序打包成exe可执行文件或者jar包的常见问题

近期由于项目需要,需要把之前的matlab程序打包成exe可执行文件或者jar包,真的是,心,力,交,瘁,我把近两天打包遇到的各种奇葩问题在这里总结一下:代码中尽量避免出现中文,无论是注释也好还是程序里,因为真的,真的,很容易出问题打包成exe文件时,可以选择下载matlab提供链接里官方的VC,也可以选择安装VS6.0++(至于如何安装,这又是另一番学问了,但是时间过得有点久,好多忘了)打包

2016-04-09 10:28:23 11671 6

gnuplot5.0.5 windows安装包 亲测可用

gnuplot5.0.5 windows安装包 亲测可用,一个好用的画图软件

2017-03-16

python3.2.4 windows 64位安装包

python(可以在http://www.python.org上下载到,需要安装)

2017-03-13

KMeans+BOF实现图像检索(Matlab)

使用KMeans算法与BOF 算法实现图像检索,Matlab编码

2016-04-13

多功能计算器实现C++代码以及代码详解

多功能计算器实现C++代码,支持单目,双目复杂函数等,以及解说的PPT与演示的效果图片,使用逆波兰式实现

2015-08-17

Eclipse(4.4.0以上版本) 插件WindowBuilder(Windows64位)

Eclipse(4.4.0以上版本),安装的WindowBuilder插件,安装后可调试出可视化用户界面编程

2014-11-01

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除