基础方法: ChangeFillShape //修改填充形状ChangeFillShape(...) View Code //液化方法InkPaint(...) View Code //圆角样式
????????????for?(int?i?=?0;?i?<?matrix.Length;?i++)
????...
分类:
其他好文 时间:
2014-07-22 08:34:34
阅读次数:
181
题目: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 sorte....
分类:
编程语言 时间:
2014-07-22 00:35:34
阅读次数:
290
1.要求系数矩阵可逆2.A为增广矩阵,即A[i][n]为第i个方程右边的bi3.运行结束后A[i][n]即为第i个未知数的值typedef double Matrix[N][N];void gauss_elimination(Matrix A,int n){ int i,j,k,r; f...
分类:
其他好文 时间:
2014-07-22 00:27:38
阅读次数:
187
UVA 11149 - Power of Matrix
题目链接
题意:给定一个n*n的矩阵A和k,求∑kiAi
思路:利用倍增去搞,∑kiAi=(1+Ak/2)∑k/2iAi,不断二分即可
代码:
#include
#include
const int N = 45;
int n, k;
struct mat {
int v[N][N];
mat() ...
分类:
其他好文 时间:
2014-07-20 23:07:20
阅读次数:
274
行做x集,列做y集,1就给该行该列连一条边,输出最大匹配边即可
#include
#include
#include
#include
#include
#include
using namespace std;
#define N 105
int lef[N], pn;//lef[v]表示Y集的点v 当前连接的点 , pn为x点集的点数
bool T[N]; //T[u] 表示Y集 u...
分类:
其他好文 时间:
2014-07-20 00:16:49
阅读次数:
198
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?...
分类:
编程语言 时间:
2014-07-19 23:46:49
阅读次数:
516
what's xxxPCAprincipal components analysis is for dimensionality reduction.主要是通过对协方差矩阵Covariance matrix进行特征分解,以得出数据的主成分(即特征向量eigenvector)与它们的权值(即特征值ei...
分类:
其他好文 时间:
2014-07-19 23:23:11
阅读次数:
241
1. PCAprincipal components analysis主要是通过对协方差矩阵Covariance matrix进行特征分解,以得出数据的主成分(即特征向量eigenvector)与它们的权值(即特征值eigenvalue)。PCA是最简单的以特征量分析多元统计分布的方法。其结果可以理...
分类:
其他好文 时间:
2014-07-19 18:05:19
阅读次数:
190
本章习题很经典:
3-4判断单位矩阵
5、矩阵乘法
8、八皇后问题
其中八皇后问题我感觉存在问题,回溯法我运用的不好就先不挂了。
题目请见 http://download.csdn.net/download/wangpegasus/5701765
3、
bool identity_matrix(int matrix[10][10])
{
int length = 10;...
分类:
其他好文 时间:
2014-07-19 13:41:20
阅读次数:
182
class Solution {public: void rotate(vector > &matrix) { int n = matrix.size(); int end = n / 2; for (int i=0; i<end; i++) { ...
分类:
其他好文 时间:
2014-07-19 11:19:11
阅读次数:
162