Algorithm 版 (精华区)
发信人: lofe ()感激生活(), 信区: Algorithm
标 题: Ash - comp.h
发信站: 哈工大紫丁香 (Sun Sep 3 08:24:50 2000), 转信
/*
Define storage allocation parameters
FAR_TABLES dynamically allocates dictionary using far pointers
SPLIT_TABLES allows a dictionary size over 32K
*/
#define FAR_TABLES
#undef SPLIT_TABLES
/* Define size of dictionary and other useful parameters */
#define NDICT 28000U /* Size of circular dictionary */
#define MAX_ORDER 8 /* Maximum order accomodated by the model */
#define MAX_CHAR_CODE 256 /* Number of symbols accepted by model */
#define HTBL1_SIZE 256 /* Hash table size - equals character set size */
#define MIN_STR 3 /* Minimum string length */
#define MAX_STR_CODE 64 /* Maximum code value for string length */
#define MAX_STR (MIN_STR+MAX_STR_CODE+254)
#define MAX_STR_SAVE (MIN_STR)
#define MAX_SYM (MAX_CHAR_CODE + 2)
#define MAX_DICT (NDICT+MAX_ORDER)
#define NIL_DICT_PTR 0
#define SWITCH_SYM -1
#define END_OF_FILE MAX_CHAR_CODE
#define START_STRING (MAX_CHAR_CODE + 1)
void InitModel (int);
void CompressSymbol (int);
int ExpandSymbol (void);
void CloseModel (void);
--
Every problem has a solution.
infosite@263.net
※ 修改:.haojs 于 Sep 3 08:22:27 修改本文.[FROM: bbs.hit.edu.cn]
--
※ 转寄:.武汉白云黄鹤站 bbs.whnet.edu.cn.[FROM: bbs.hit.edu.cn]
--
☆ 来源:.哈工大紫丁香 bbs.hit.edu.cn.[FROM: haojs.bbs@bbs.whnet.]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.037毫秒