码迷,mamicode.com
首页 >  
搜索关键字:matrix factorization    ( 4370个结果
每日算法之四十一:Spiral Matrix II (螺旋矩阵)
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, You should return the following matrix: [ [ 1, 2, 3 ], [ 8, 9, 4 ], [...
分类:其他好文   时间:2014-08-15 22:37:39    阅读次数:274
HDU2119_Matrix(二分图/最小点覆盖=最大匹配)
解题报告 题意: 题意类似与POJ3041 思路: 见POJ3041解题报告 最小点覆盖。 #include #include #include using namespace std; int mmap[110][110],vis[110],pre[110],n,m; int dfs(int x) { for(int i=1; i<=m; i++) {...
分类:其他好文   时间:2014-08-15 21:12:49    阅读次数:253
A. Little Pony and Crystal Mine
Twilight Sparkle once got a crystal from the Crystal Mine. A crystal of size n (n is odd; n?>?1) is an n?×?n matrix with a diamond inscribed into it.Y...
分类:其他好文   时间:2014-08-15 20:54:59    阅读次数:210
transform 和 transition
transform的属性包括:rotate() / skew() / scale() / translate() /matrix()其中 rotate() 旋转度数,0-360 skew() 元素翻转给定的角度,根据给定的水平线(X 轴)和垂直线(Y 轴)参数 translate()元素从其...
分类:其他好文   时间:2014-08-15 17:34:59    阅读次数:182
[leetcode]Spiral Matrix
Spiral MatrixGiven a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[...
分类:其他好文   时间:2014-08-15 17:17:29    阅读次数:176
[LeetCode] Maximal Rectangle(good)
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.参考“Largest Rectangle in Histogram...
分类:其他好文   时间:2014-08-15 12:45:58    阅读次数:162
SGU 168.Matrix
时间限制:0.5s空间限制:15M题意: 给出一个N*M的矩阵A,计算矩阵B,满足B[i][j]=min{ A[x][y]:(y>=j) and ( x>=i+j-y )}Solution : 如图方式从右下角遍历矩阵,那么可令B[i][j]=min(A[i][j],B[...
分类:其他好文   时间:2014-08-15 10:40:58    阅读次数:191
Unity3D脚本中文系列教程(八)
◆static var matrix : Matrix4x4描述:设置用于渲染所有gizmos的矩阵。类方法◆Static function DrawCube(center:Vector3,size:Vector3):void描述:用center和size绘制一个立方体.function OnDra...
分类:其他好文   时间:2014-08-14 13:54:39    阅读次数:349
[leetcode]Rotate Image
Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?CC上的原题,...
分类:其他好文   时间:2014-08-14 03:45:17    阅读次数:192
Matrix multiplication
给两个n*n的矩阵,求乘积后对3取摸的结果...
分类:其他好文   时间:2014-08-13 22:29:27    阅读次数:255
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!