码迷,mamicode.com
首页 >  
搜索关键字:matrix factorization    ( 4370个结果
[LeetCode] Rotate Image 旋转图像
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?在计算机图像处理里,旋转图片是很常见的...
分类:其他好文   时间:2015-04-03 13:00:14    阅读次数:132
UVa 11082 Matrix Decompressing(最大流)
不想吐槽了..sample input 和sample output 完全对不上...调了一个晚上...不想说什么了...------------------------------------------------------------------------------#include#in...
分类:其他好文   时间:2015-04-02 22:12:26    阅读次数:132
Lintcode: Search a 2D matrix II
Write an efficient algorithm that searches for a value in an m x n matrix, return the occurrence of it.This matrix has the following properties: * ...
分类:其他好文   时间:2015-04-02 13:22:41    阅读次数:113
【Java】边集转化为邻接矩阵
图的边集是可以转化为邻接矩阵的。 邻接矩阵的定义如下: 邻接矩阵(Adjacency Matrix):是表示顶点之间相邻关系的矩阵。设G=(V,E)是一个图,其中V={v1,v2,…,vn}。G的邻接矩阵是一个具有下列性质的n阶方阵: ①对无向图而言,邻接矩阵一定是对称的,而且对角线一定为零(在此仅讨论无向简单图),有向图则不一定如此。 ②在无向图中,任一顶点i的度为第i列所有元素的和,在...
分类:编程语言   时间:2015-04-01 17:40:29    阅读次数:197
uva 1401 Fast Matrix Operations 快速矩阵操作 (线段树 区间修改和查询)
题意:给一个r行c列的全0矩阵,支持以下三种操作: 1 x1 y1 x2 y2 v 子矩阵(x1 y1 x2 y2)的所有元素增加v 2 x1 y1 x2 y2 v 子矩阵(x1 y1 x2 y2)的所有元素设为v 3 x1 y1 x2 y2   查询子矩阵(x1 y1 x2 y2)的元素和、最小值、最大值。 子矩阵(x1 y1 x2 y2)是指满足 x1 矩阵不超过20行,矩阵...
分类:其他好文   时间:2015-04-01 17:37:50    阅读次数:278
UVa 11992 (线段树 区间修改) Fast Matrix Operations
比较综合的一道题目。二维的线段树,支持区间的add和set操作,然后询问子矩阵的sum,min,max写完这道题也是醉醉哒,代码仓库里还有一份代码就是在query的过程中也pushdown向下传递标记。 1 #include 2 #include 3 #include 4 using ...
分类:其他好文   时间:2015-04-01 17:29:38    阅读次数:94
jQuery支持移动Mobile的DOM元素移动和缩放插件
jQuery Panzoom是一款非常实用的HTML DOM元素平移和缩放jQuery和CSS3插件。Panzoom利用CSS transforms 和 matrix函数来为浏览器进行硬件(GPU)加速,它可以支持任何元素的平移和缩放:图片、视频、iframe、canvas或文本等等。 Panzoom支持移动Mobile的触摸姿势,也支持使用手指来缩放元素大小。它完全可以同时在桌面设备和移动手机...
分类:移动开发   时间:2015-04-01 13:18:20    阅读次数:156
leetcode || Spiral Matrix
problem: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. For example, Given the following matrix: [ [ 1, 2, 3 ], [ 4, 5, 6 ],...
分类:其他好文   时间:2015-04-01 11:26:55    阅读次数:109
【Unity3D API的学习与使用】Unity实现GUI组件的位移、缩放和旋转
在使用Unity中GUI组件时,我们可以像处理一个实体一样,对其进行位移、缩放和旋转的操作。其中,位移和缩放都只需要改变其Rect的内容即可,前者改变x、y参数,后者改变width和height参数,而旋转则有所不同,它需要使用GUI.matrix的一个函数:GUIUtility.RotateAroundPivot (rotAngle, pivotPoint) 参数说明: rotAngle:旋转...
分类:编程语言   时间:2015-04-01 01:54:47    阅读次数:210
[LeetCode] Maximal Rectangle
Maximal Rectangle  Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 解题思路; 题意表示找到右全1形成的最大的矩形块。 解法1: 用动态规划做,若d[i][j]表示以matrix[...
分类:其他好文   时间:2015-03-31 22:15:43    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!