Dubbo目前支持4中注册中心,(multicast zookeeper redis simple)
推荐使用Zookeeper注册中心,
Multicast注册中心
不需要启动任何中心节点,只要广播地址一样,就可以互相发现
组播受网络结构限制,只适...
分类:
其他好文 时间:
2016-05-27 12:33:23
阅读次数:
373
本文翻译自https://en.wikipedia.org/wiki/Adaptive_histogram_equalization,如有错误还望海涵。。
自适应的直方图均衡(Adaptive Histogram Equalization)
1.算法简介
AHE是一种用来改善图像对比度的图像处理技术,它与传统的(普通)直方图均衡相比,不同点主要在于,AHE通过计算图像每一个显...
分类:
其他好文 时间:
2016-05-27 12:32:15
阅读次数:
654
剧情提要:
[机器小伟]在[工程师阿伟]的陪同下进入了[九转金丹]之第八转的修炼。设想一个场景:
如果允许你带一台不连网的计算机去参加高考,你会放弃选择一个手拿计算器和草稿本吗
?阿伟决定和小伟来尝试一下用计算机算高考题会是怎样的感觉。
正剧开始:
星历2016年05月24日 12:49:39, 银河系厄尔斯星球中华帝国江南行省。
[工程师阿伟]正在和[机器小伟]一起做着2010...
分类:
其他好文 时间:
2016-05-27 12:30:25
阅读次数:
284
1.混合了贪心思想的背包入门
nefu1028暑假计划 01背包
给定工作开始时间、完成时间、给的工资,工作不能重叠,求最大收益。
一维Dp表示截止到当前时间的最大收益,但是事先要对结构体按结束时间排序,防止前一状态没有值
#include
#include
#include
#include
using namespace st...
分类:
其他好文 时间:
2016-05-27 12:30:36
阅读次数:
217
Struts2_CRUD操作实例
Struts2运行流程:
浏览器先发了个请求,
先会到StrutsPrepareAndExecuteFilter的doFilter方法,
然后创建了一个StrutsActionProxy(代理),调用了这个代理的execute方法,
StrutsActionProxy里有一个DefaultActionInvocation的引用,调用了De...
分类:
其他好文 时间:
2016-05-27 12:31:22
阅读次数:
201
题目链接:https://leetcode.com/problems/search-in-rotated-sorted-array-ii/题目:
Follow up for “Search in Rotated Sorted Array”:
What if duplicates are allowed?Would this affect the run-time complexity? Ho...
分类:
其他好文 时间:
2016-05-27 12:29:39
阅读次数:
160
题目链接:https://leetcode.com/problems/minimum-size-subarray-sum/
题目:
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If t...
分类:
其他好文 时间:
2016-05-27 12:31:29
阅读次数:
180
命令(Command)模式属于对象的行为模式【GOF95】。命令模式又称为行动(Action)模式或交易(Transaction)模式。命令模式把一个请求或者操作封装到一个对象中。命令模式允许系统使用不同的请求把客户端参数化,对请求排队或者记录请求日志,可以提供命令的撤销和恢复功能。
命令模式是对命令的封装。命令模式把发出命令的责任和执行命令的责任分割开,委派给不同的对象。
每一个命令...
分类:
其他好文 时间:
2016-05-27 12:31:40
阅读次数:
186
1. 二叉树可以采用顺序存储数组和链式存储二叉链表两种方法来存储二叉树。经常使用的二叉链表方法,因为其非常灵活,方便二叉树的操作。二叉树的二叉链表存储结构如下所示:typedef struct binary_tree_node
{
int elem;
struct binary_tree_node *left;
struct binary_tree_node *right;...
分类:
其他好文 时间:
2016-05-27 12:29:17
阅读次数:
193
Largest prime factor
Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10004 Accepted Submission(s): 3534
Problem Description
Ever...
分类:
其他好文 时间:
2016-05-27 12:29:18
阅读次数:
186
练习的故事仍然继续下去,今天写下的题目难度适中,记录自己近段时间的训练成果。涉及数学,动态规划,字符串问题。poj 2159 Ancient Cipher(规律)http://poj.org/problem?id=2159
大意:密码加密方法,两种加密方式,第一种,替换加密:Substitution cipher changes all occurrences of each letter to...
分类:
其他好文 时间:
2016-05-27 12:29:00
阅读次数:
238
1、介绍
本系统由两部分组成:
温度采集端
温度显示端
原理:通过温度传感器采集温度显示在液晶屏或者数码管上,并将温度通过红外发送到红外接收头,然后解调解码数据,将温度显示出来,实现温度的无线测量
2.控制器的选择
方案一:采用MSP430来处理
Msp430是一种超低功耗的混合信号处理器,采用精简指令集,单个始终走起就可以执行一条指令,速度比51快得...
分类:
其他好文 时间:
2016-05-27 12:27:57
阅读次数:
280
题目链接:https://leetcode.com/problems/powx-n/
题目:
Implement pow(x, n).
思路:
easy。上课例题= =
算法:
public double myPow(double x, int n) {
if(n<0)
return 1.0/(myPow2(x,-n));
el...
分类:
其他好文 时间:
2016-05-27 12:27:43
阅读次数:
180
题目链接:https://leetcode.com/problems/sqrtx/
题目:
Implement int sqrt(int x).
Compute and return the square root of x.
思路:
二分法搜索平方数 要注意,如果不能完整的开方,要取靠左边的数,
算法:
public int mySqrt(int x) { ...
分类:
其他好文 时间:
2016-05-27 12:27:07
阅读次数:
175
题目链接:https://leetcode.com/problems/search-in-rotated-sorted-array/
题目:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1...
分类:
其他好文 时间:
2016-05-27 12:28:17
阅读次数:
177
题目描述
操作给定的二叉树,将其变换为源二叉树的镜像。
输入描述:
二叉树的镜像定义:源二叉树
8
/ 6 10
/ \ / 5 7 9 11
镜像二叉树
8
/ 10 6
/ \ / 11 9 7...
分类:
其他好文 时间:
2016-05-27 12:26:03
阅读次数:
184
三层BP程序参考
理论介绍
定义各参数:/**
* input vector.输入向量
*/
private final double[] input;
/**
* hidden layer. 隐含层向量
*/
private final double[] hidden;
/**
* output layer. 输出层
*/
private fina...
分类:
其他好文 时间:
2016-05-27 12:27:14
阅读次数:
155