http://mba.shengwushibie.com/itbook/BookChapter.asp?id=8745 http://www.cnblogs.com/yangze/archive/2011/07/11/2103040.html http://matrix.42qu.com/10735 ...
分类:
编程语言 时间:
2016-11-16 22:22:53
阅读次数:
189
matrix(<a> <b> <c> <d> <e> <f>),以六个值的变换矩阵形式指定变换 translate(<tx> [<ty>]),通过 tx 和 ty 指定平移 scale(<sx> [<sy>]),通过 sx 和 sy 指定缩放操作 rotate(<rotate-angle> [<cx ...
分类:
其他好文 时间:
2016-11-11 20:21:49
阅读次数:
174
题意:有一个N行M列的正整数矩阵,输入N个前1~N行所有元素之和,以及M个前1~M列所有元素之和。要求找一个满足这些条件,并且矩阵中的元素都是1~20之间的正整数的矩阵。输入保证有解,而且1≤N,M≤20。 解法:这题的图转换得极妙!(*^▽^*) 我们可以发现找到的矩阵需要满足3个条件:1.N行M ...
分类:
其他好文 时间:
2016-11-10 09:36:08
阅读次数:
205
数据结构实验之图论八:欧拉回路 Time Limit: 1000MS Memory Limit: 65536KB Submit Statistic Problem Description 在哥尼斯堡的一个公园里,有七座桥将普雷格尔河中两个岛及岛与河岸连接起来。能否走过这样的七座桥,并且每桥只走一次? ...
分类:
其他好文 时间:
2016-11-10 03:03:36
阅读次数:
247
数据结构实验之图论七:驴友计划 Time Limit: 1000MS Memory Limit: 65536KB Submit Statistic Problem Description 做为一个资深驴友,小新有一张珍藏的自驾游线路图,图上详细的标注了全国各个城市之间的高速公路距离和公路收费情况,现 ...
分类:
其他好文 时间:
2016-11-10 02:44:41
阅读次数:
399
sorted matrix ( Young Matrix ) search for a given value in the matrix: 1) starting from upper-right corner, turn left or turn down, O(n+m) 2) if it's ...
分类:
其他好文 时间:
2016-11-09 11:15:30
阅读次数:
243
1.向量 向量是用来存储数值型、字符型或逻辑性数据的一维数组,用函数c()创建向量 a <- c(1,2,5,6,4) b <- c("one","two","three") c <- c("TRUE","FALSE") 2.矩阵 矩阵是一个二维数组,只是每个元素都拥有相同的模式,用函数matrix ...
分类:
编程语言 时间:
2016-11-08 17:27:15
阅读次数:
278
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 ...
分类:
其他好文 时间:
2016-11-08 08:05:08
阅读次数:
140
1 #include <stdio.h> 2 #define MAX 10 3 void MatrixMutiply(int m,int n,int l,int MatrixA[MAX][MAX],int MatrixB[MAX][MAX],int MatrixResult[MAX][MAX]) 4 ...
分类:
其他好文 时间:
2016-11-07 17:39:42
阅读次数:
329