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 ...
分类:
其他好文 时间:
2019-10-17 13:28:18
阅读次数:
64
[A. Thickest Burger] 签到。 [B. Relative atomic mass] 签到 [C. Recursive sequence] $$f[i] = f[i - 1] + 2 * f[i - 2] + i ^ 4$$ $$\left[ \begin{matrix} 1 & 2 ...
分类:
其他好文 时间:
2019-10-17 01:15:12
阅读次数:
96
Matrix Tree定理 对于一个n个顶点的无向图G 度矩阵D: 设i顶点的度数为du[i],则D[i][i]=du[i] 邻接矩阵A: 若i和j之间有边,则A[i][j]=1,否则为0 Kirchhoff矩阵C: C=D A Matrix Tree定理: 对于一个无向图G,它的生成树个数等于其K ...
分类:
其他好文 时间:
2019-10-17 00:48:53
阅读次数:
110
[TOC]更新、更全的《机器学习》的更新网站,更有python、go、数据结构与算法、爬虫、人工智能教学等着你:https://www.cnblogs.com/nickchen121/# 矩阵转置假设我们有一个矩阵$$w=\begin{matrix}1&2&3 \\4&5&6 \\7&8&9 \\\... ...
分类:
其他好文 时间:
2019-10-16 18:13:01
阅读次数:
89
[TOC]更新、更全的《机器学习》的更新网站,更有python、go、数据结构与算法、爬虫、人工智能教学等着你:https://www.cnblogs.com/nickchen121/# 通过线性回归带你了解算法流程# 一、1. 1 线性回归引入相信我们很多人可能都有去售楼处买房而无奈回家的行为,就... ...
分类:
编程语言 时间:
2019-10-16 17:38:14
阅读次数:
78
点云数据可以用ASCII码的形式存储在PCD文件中(关于该格式的描述可以参考链接:The PCD (Point Cloud Data) file format)。为了生成三维点云数据,在excel中用rand()函数生成200行0-1的小数,ABC三列分别代表空间点的xyz坐标。 进行点云的变换主要 ...
分类:
其他好文 时间:
2019-10-11 12:40:31
阅读次数:
89
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: 把每一列看成histogram,就可以得到4个 ...
分类:
其他好文 时间:
2019-10-10 09:14:03
阅读次数:
71
描述 There is a matrix only contains uppercase letters. Try to find a word in this matrix. You can go toward four directions (top, bottom, left, right), ...
分类:
其他好文 时间:
2019-10-09 21:20:45
阅读次数:
142
一、功能 产生拉普拉斯分布的随机数。 二、方法简介 1、产生随机变量的组合法 将分布函数$F(x)$分解为若干个较为简单的子分布函数的线性组合 $$ F(x)=\sum_{i=1}^{K}p_{i}F_{i}(x) $$ 其中 $ p_{i} 0 \ (\forall i) $ ,且 $ \sum_ ...
分类:
其他好文 时间:
2019-10-07 19:51:20
阅读次数:
406