代码搜索:HuffmanTree
找到约 903 项符合「HuffmanTree」的源代码
代码结果 903
www.eeworm.com/read/383045/8980133
class huffmantree.class
www.eeworm.com/read/383045/8980182
java huffmantree.java
/*
* HuffmanTree.java
*
* Created on 2008年11月14日, 上午12:21
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package coding;
/**
www.eeworm.com/read/382796/9000088
java huffmantree.java
public class HuffmanTree {
public static Bintree huffmanTree(float[] f)
{
// 生成单结点树
int n=f.length;
Huffman[] w=new Huffman[n+1];
for (int i=0;i
www.eeworm.com/read/375618/9355629
h huffmantree.h
#include
static const bool LEFT=true,RIGHT=false;
struct huffmancode
{
char chr;
bool *code;
int length;
huffmancod
www.eeworm.com/read/375618/9355632
cpp huffmantree.cpp
#include "huffmantree.h"
huffmantree::huffmantree()
{
tree=NULL;
codestree=NULL;
decode_node=NULL;
WEP=0;
}
//--------------------------------------------------------
huff
www.eeworm.com/read/371897/9531457
h huffmantree.h
// HuffmanTree.h: interface for the HuffmanTree class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_HUFFMANTREE_H__E2FE6C12_C0A9_4483_AF1B_9623F1FD0E
www.eeworm.com/read/371897/9531484
cpp huffmantree.cpp
// HuffmanTree.cpp: implementation of the HuffmanTree class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "BinaryTree.h"
#include "Huff
www.eeworm.com/read/362752/9982140
c huffmantree.c
#include "head.h"
#include "struct.h"
#include "declare.h"
int main(void)
{
int choice;
char name[20];
ElemType e = {'\0',0};
CharArr c;
int i,ret;
HuffmanTree ht;
HuffmanCode hc;
for(i=0;i
www.eeworm.com/read/166786/9997726
rar huffmantree.rar
www.eeworm.com/read/166786/9997775
cpp huffmantree.cpp
#include
#include
#include
//Huffman树的存储结构
#define n 5 //叶子数目
#define m 2*n-1 //树中结点总数
typedef struct //结点类型
{ float weight; //权值,不妨设权值均大于零
i