代码搜索结果
找到约 33,766 项符合
Algorithm 的代码
2364.cpp
/* This Code is Submitted by wywcgs for Problem 2364 on 2006-09-22 at 21:08:17 */
#include
#include
#include
using namespace std;
const int N = 1024;
int ma
2410.cpp
/* This Code is Submitted by wywcgs for Problem 2410 on 2006-10-26 at 11:57:18 */
#include
#include
using namespace std;
const int N = 102400;
const int D = 1024;
void b
auxiliary.c
/* Some utility functions (not part of the algorithm) */
# include
# include
# include
# include "global.h"
# include "rand.h"
/* Function to return the maximum of two
cgnr.asv
%function [y,x]=CGNR(A,b,x0)
%developped by Plum
%this algorithm is to sovle the linear system Ax=b
%where A is a n-by-n matrix
function [y,x]=CGNR(A,b,x0)
k=0;
x0=zeros(length(A),1);
r=b-A*x0;
rawcg.m
%function y=CG(A,b,x0)
%developped by Plum
%this algorithm is to sovle the linear system Ax=b
%where A is a n-by-n matrix
function [y,x]=RawCG(A,b,x0)
k=0;
r=b-A*x0;
err=1;
while err>0.00001
cg.m
%function y=CG(A,b,x0)
%developped by Plum_Liliang
%this algorithm is to sovle the linear system Ax=b
%where A is a n-by-n matrix
function [y,x]=CG(A,b,x0)
k=0;n=length(A);
if nargin
cgnr.m
%function [y,x]=CGNR(A,b,x0)
%developped by Plum
%this algorithm is to sovle the linear system Ax=b
%where A is a n-by-n matrix
function [y,x]=CGNR(A,b,x0)
k=0;
x0=zeros(length(A),1);
r=b-A*x0;
cg.asv
%function y=CG(A,b,x0)
%developped by Plum
%this algorithm is to sovle the linear syAx=b
function [y,x]=CG(A,b,x0)
k=0;
r0=b-A*x0;
r1=r0;
err=1;
while err>0.00001
k=k+1;
if k
algorithm.txt
1. Compression algorithm (deflate)
The deflation algorithm used by gzip (also zip and zlib) is a variation of
LZ77 (Lempel-Ziv 1977, see reference below). It finds duplicated strings in
the input dat
algorithm.txt
1. Compression algorithm (deflate)
The deflation algorithm used by gzip (also zip and zlib) is a variation of
LZ77 (Lempel-Ziv 1977, see reference below). It finds duplicated strings in
the inpu