码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
深入理解CSS变形transform(2d)
× 目录 [1]变形原点 [2]变形函数 [3]多值 前面的话 CSS变形transform是一些效果的集合,主要是移动、旋转、缩放和倾斜这四种基本操作,还可以通过设置matrix矩阵来实现更复杂的效果。变形transform可以实现2D和3D两种效果。2D变形涉及的属性主要有transform变形 ...
分类:Web程序   时间:2016-04-04 06:45:35    阅读次数:238
Longest Continuance Increasing sub-sequence in matrix
一个矩阵,求最长连续的序列长度 [1 2 3 4 5 6 7 8 9] 我的解法时用dfs遍历矩阵,如果便利过的元素就标记为false,不再遍历。 邻居 就是上下左右 e.g. 1 2 3 6 5 4 -> 7 7 9 8 =================== 5 7 9 1 2 3 -> 3 4 ...
分类:其他好文   时间:2016-04-03 07:20:25    阅读次数:120
BZOJ3659 : Which Dreamed It
首先判断一下是否无解,并剔除孤立点。 根据best theorem,有向图中以$i$为起点的欧拉回路个数为: 以$i$为根的树形图个数$\times\prod_{i=1}^n (deg(i)-1)!$。 根据matrix tree theorem,以$i$为根的树形图个数$=$基尔霍夫矩阵去掉第$i ...
分类:其他好文   时间:2016-04-03 01:44:12    阅读次数:188
POJ3658Matrix( 双重二分+负数+死循环)
POJ 3658 Matrix 双重二分,wa了一下午,实在不太明白为啥一写二分就会进入死循环. INF要设的大一些,本题设0x3f3f3f3f会wa. 本题有负数, 二分时(l+r)/2与(l+r)>>1的结果有所不同; 如 l=0,r=-1,则 (l+r)/2=0,而(l+r)>>1=-1,而我 ...
分类:其他好文   时间:2016-04-02 18:43:56    阅读次数:195
ubuntu14.04源代码安装postgresql 9.1
项目须要使用gisgraphy,怎奈gisgraphy3.0仅仅支持postgis1.5.因此仅仅能安装老版本号的posgresql和postgis了。从postgis的support matrix图能够看到postgis不同版本号支持的postgresql, 我安装的是postgresql9.1. ...
分类:数据库   时间:2016-04-02 17:35:50    阅读次数:281
240. Search a 2D Matrix II
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted i ...
分类:其他好文   时间:2016-04-01 13:08:55    阅读次数:179
LeetCode -- Set Matrix Zeroes
Question: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Analysis: 给出一个m * n的矩阵,如果一个元素为0,则它整行整列都设为0. An ...
分类:其他好文   时间:2016-03-31 23:32:16    阅读次数:181
302. Smallest Rectangle Enclosing Black Pixels My Submissions QuestionEditorial Solution
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pixel. The black pixels are connected, i.e., there is only one bla ...
分类:其他好文   时间:2016-03-31 12:42:37    阅读次数:101
lintcode-medium-Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. Example For example, given the follo ...
分类:其他好文   时间:2016-03-30 08:16:24    阅读次数:142
Android——ImageView的scaleType属性与adjustViewBounds属性 (转)一
ImageView的scaleType的属性有好几种,分别是matrix(默认)、center、centerCrop、centerInside、fitCenter、fitEnd、fitStart、fitXY android:scaleType="center" 保持原图的大小,显示在ImageVie ...
分类:移动开发   时间:2016-03-29 16:33:48    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!