Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u...
分类:
其他好文 时间:
2015-08-06 21:50:40
阅读次数:
118
Prime DistanceTime Limit:1000MSMemory Limit:65536KTotal Submissions:13961Accepted:3725DescriptionThe branch of mathematics called number theory is abo...
分类:
其他好文 时间:
2015-08-04 10:54:09
阅读次数:
96
题目传送门 1 /* 2 构造+暴力:按照题目意思,只要10次加1就变回原来的数字,暴力枚举所有数字,string大法好! 3 */ 4 /************************************************ 5 Author :Running_Ti...
分类:
其他好文 时间:
2015-08-03 14:20:47
阅读次数:
170
A combination of different DP passes.https://www.hackerrank.com/challenges/lego-blocks/editorial#include #include #include using namespace std;typedef...
分类:
其他好文 时间:
2015-08-02 06:23:17
阅读次数:
187
信息论
熵
如果离散随机变量有P(X)分布,那么x所携带的熵(信息量):
之所以用log2来作为底,是为了方便衡量该信息可以用多少bit来表示。因为1个bit非0即1. 从上公式可以推导出:当k个状态发生的几率一样时,随机变量X所携带的熵越大。正如下图表示的伯努利分布所携带的熵随着概率变化的结果:
KL divergence
KL divergence 全称Kullbac...
分类:
系统相关 时间:
2015-07-31 20:28:17
阅读次数:
333
概率论基本概念
离散变量
概率论中的两个基本法则:加法法则和乘法法则,加法法则定义了随机变量X与条件变量Y之间的直接联系。乘法法则定义了概率学中最重要的条件概率,同时也可以叫做联合概率,因为它描述了事件X和Y同时发生的概率。
通过上面公式可以推到出条件概率公式:
进而可以得到著名的贝叶斯公式,贝叶斯公式广泛的应用于科学界,这也被称为后验概率,因为它在咱们知道...
分类:
系统相关 时间:
2015-07-29 23:03:39
阅读次数:
1124
在讲完最小二乘(linear regression)和K近邻后,进入本节。引入符号:$X\in R^p$ X为维度为p的输入向量$Y\in R$ Y为输出,实数$P(X,Y)$ 为两者的联合概率分布$f(X)$ 为预测函数,给定X,输出Ya.使用squared error loss(L2)作为损失函...
分类:
其他好文 时间:
2015-07-28 12:17:08
阅读次数:
108
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:
其他好文 时间:
2015-07-26 20:36:39
阅读次数:
82
前一节《EBT 道客巴巴的加密与破解 序章》粗略讲了一些关系DOC88文档下载的一些枝节,主要是通过Chrome等工具来开启VIP模式,打开道客巴巴文档内容复制和打印功能,这一篇开始将进行更深入的研究。
还是以《Soilless Culture- Theory and Practice》为例:http://www.doc88.com/p-362142082976.html
DO...
分类:
其他好文 时间:
2015-07-26 12:50:52
阅读次数:
999
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where
the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited numb...
分类:
其他好文 时间:
2015-07-25 20:00:54
阅读次数:
138