lda,latent diriclet allocation,是一个最基本的bayesian模型。本文要研究lda基于变分的推导方法。意义是重大的。一、符号的定义: the number of topics: the number of documents: the number of terms ...
分类:
其他好文 时间:
2014-09-03 10:49:46
阅读次数:
239
Big Number
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 26003 Accepted Submission(s): 11810
Problem Description
In many applicati...
分类:
其他好文 时间:
2014-09-03 09:43:46
阅读次数:
160
calculatethenumberofcharacters-统计文件中的字符数,非空白字符数,字母数,输入到文件和屏幕://calculatethenumberofcharacters-统计文件中的字符数,非空白字符数,字母数,输入到文件和屏幕:
#include<iostream>
#include<fstream>
#include<cstdlib>..
分类:
其他好文 时间:
2014-09-03 02:44:56
阅读次数:
227
参考:http://www.jb51.net/w3school/css/pr_dim_line-height.htmline-height 属性设置行间的距离(行高)。注释:不允许使用负值。值 描述normal 默认。设置合理的行间距。number 设...
分类:
Web程序 时间:
2014-09-03 01:26:57
阅读次数:
196
Prime TestTime Limit:6000MSMemory Limit:65536KTotal Submissions:29046Accepted:7342Case Time Limit:4000MSDescriptionGiven a big integer number, you are...
分类:
其他好文 时间:
2014-09-03 00:03:15
阅读次数:
732
代码思路如下:select *,(@row_num:=@row_num+1) as row_no from stc_output,(select(@row_num:=0)) b;select * from (select *,(@row_num:=@row_num+1) as row_no from...
分类:
数据库 时间:
2014-09-02 19:33:35
阅读次数:
253
这里只列出比较常用的参数,详细的请查看man iptables 1、查看 iptables -nvL –line-number -L 查看当前表的所有规则,默认查看的是filter表,如果要查看NAT表,可以加上-t NAT参数 -n 不对ip地址进行反查,加上...
分类:
其他好文 时间:
2014-09-02 18:17:25
阅读次数:
237
题目链接:点击打开链接
题意:
给定n个点的树,有边权。
定义lucky number:数字只有4或7组成
对于一个三元组(i, j, k)
若path(i,j) 路径上的数字存在lucky number && path(i,k) 路径上的数字存在lucky number
则三元组合法。
问有多少个合法的三元组。
( (i,j,k) != (i,k,j) )
用全集-补集。dfs...
分类:
其他好文 时间:
2014-09-02 17:51:32
阅读次数:
255
Combination Sum
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 fro...
分类:
其他好文 时间:
2014-09-02 17:48:05
阅读次数:
244
Given an array of integers, every element appears three times
except for one. Find that single one.
#include
#include
#include
using namespace std;
#define STOP system("pause")
#if 0
class Soluti...
分类:
其他好文 时间:
2014-09-02 17:46:55
阅读次数:
177