摘要:
huffman 编码简介
......
摘要:
void myimagedestory(pmyimg p){
free(p->data);
free(p);
}
int huffman1(){
if (getnextbit()){
if (getnextbit()){
if (getnextbit()){
if (getnextbit()){
return 0x7;/*f 4*/
}
else {
r......
AGood31bitRandomNumberGeneratorClass
latest snippet version: 1.0
using system;
namespace barsoom
{
/// <summary>
/// good 31-bit random number generator, returns uint.
/// </summary>
/// <remarks>
///
/// license : public domain
///
/// this is the base class for double and other statistical
/// random number distribution classes
///
/// throws exception if initial seed is out of range.
///
/// stephen k. park and keith w. miller. random number generators:
/// good ones are hard to find. communications of the acm,
/// new york, ny.,october 1988 p.1192
///
/// throws exception if initial seed is out of range
/// this program is public domain and was written by jill england
/// (oct 1988).
///
/// modifications;
///
/// converted to c# from c++ and hacked heavily. one major cool thing done
/// here is to be able to set the seed or get the next lcg value.
/// 3/4/2002 jae jill@eskimo.com
///
/// imported into visual studio .net, 3/1/2002 jae jill@eskimo.com
///
/// to build the generator with the original acm
/// articles numbers use -dacm_original_numbers when compiling.
///
/// original_numbers are those published m and q in the
/// original acm article. john burton, a miller/park, associate
/// has furnished numbers for a reportedly better generator. th...
下一页 摘要:
option strict off
option explicit on
option compare text
imports microsoft.visualbasic.compatibility
namespace blood.com.classlib
public class security
private pbbase64byt(63) as byte
pr......