码迷,mamicode.com
首页 >  
搜索关键字:confusion matrix    ( 4333个结果
CSS3实战开发:手把手教你照片墙实战开发
在《CSS3 2D转换技术之translate实战开发》文章中,我给大家列出了CSS3中的2D转换方法:1. translate()2. rotate()3. scale()4. skew()5. matrix()同时对第一个方法 translate()做了非常详尽的介绍,并带领大家实战开发...
分类:Web程序   时间:2014-08-07 03:05:18    阅读次数:236
Spiral Matrix II
问题:蛇形矩阵分析:设置变量dir,0123分别代表方向右下左上class Solution {public: int num[300][300]; void dfs(int x,int y,int k,int n,int dir) { num[x][y]=k; ...
分类:其他好文   时间:2014-08-06 22:25:42    阅读次数:169
Rotate Image
问题:矩阵顺时针旋转90度class Solution {public: bool dfs(vector > &matrix,int target,int n) { if(n==matrix.size()) return false; if(matrix[n]...
分类:其他好文   时间:2014-08-06 22:21:42    阅读次数:222
Search a 2D Matrix
问题:二维数组中是否存在一个数class Solution {public: bool dfs(vector > &matrix,int target,int n) { if(n==matrix.size()) return false; if(matrix[...
分类:其他好文   时间:2014-08-06 22:17:52    阅读次数:243
HDU-4920 Matrix multiplication
矩阵相乘,采用一行的去访问,比采用一列访问时间更短,根据数组是一行去储存的。神奇小代码。 Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Tot...
分类:其他好文   时间:2014-08-06 18:18:11    阅读次数:333
HDU 4920 Matrix multiplication 矩阵相乘。稀疏矩阵
Matrix multiplicationTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1775Accepted Submission(s):...
分类:其他好文   时间:2014-08-06 17:53:01    阅读次数:206
HDU4920:Matrix multiplication
Problem Description Given two matrices A and B of size n×n, find the product of them. bobo hates big integers. So you are only asked to find the result modulo 3.   Input The input con...
分类:其他好文   时间:2014-08-06 14:58:51    阅读次数:220
HDU 4920 Matrix multiplication(std::bitset)
题目连接 :http://acm.hdu.edu.cn/showproblem.php?pid=4920题意 :给两个n*n的矩阵A、B,要求算的A*B (答案对3取模)(比赛的时候一直想不到怎么去消复杂度,在最后的时候想到了用三进制压几位状态(就是几位几位算)应该可以过的,可是敲完比赛也结束。(压...
分类:其他好文   时间:2014-08-06 14:27:31    阅读次数:195
The Hungarian algorithm Template
The Hungarian algorithm withThe adjacency matrix:计算最大匹配问题int n1, n2, m, ans;int res[MAXN];bool vis[MAXN], map[MAXN][MAXN];void init(){ int t1, t2; ...
分类:其他好文   时间:2014-08-06 14:18:31    阅读次数:208
UVA 11992 Fast Matrix Operations
线段树 1 #include 2 using namespace std; 3 4 const int maxn = 1000005; 5 const int INF = 1000000009; 6 7 struct node { 8 int sum,ma,mi; 9...
分类:其他好文   时间:2014-08-06 14:09:11    阅读次数:374
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!